Smallest of issues: During introspection, the resultant schema.ts is missing a comma in the extraConfig section for a PgTable.
Given the following database table:
create table public.organization_code_configuration
(
code_config_id integer not null
constraint organization_code_configuration_code_configuration_code_config_
references public.code_configuration
on update cascade on delete restrict,
org_id uuid not null
constraint organization_code_configuration_organization_org_id_fk
references public.organization
on update cascade on delete cascade,
effective date not null,
last_updated timestamp with time zone not null,
last_updated_by uuid,
can_edit_configuration boolean default false not null,
constraint organization_code_configuration_pk
primary key (org_id, code_config_id),
constraint organization_code_configuration_pk_2
unique (org_id, effective)
);
comment on constraint organization_code_configuration_code_configuration_code_config_ on public.organization_code_configuration is 'prevents deletion of a code configuration while an organization still has a link to it';
alter table public.organization_code_configuration
owner to postgres;
Run drizzle-kit introspect:pg
Expected behavior
Current behavior. Notice the missing comma after name: "organization_code_configuration_pk"}) (4th line from the bottom)
What version of
drizzle-orm
are you using?v0.20.18
What version of
drizzle-kit
are you using?v0.30.10
Describe the Bug
Smallest of issues: During introspection, the resultant
schema.ts
is missing a comma in theextraConfig
section for aPgTable
.Given the following database table:
Run
drizzle-kit introspect:pg
Expected behavior
Current behavior. Notice the missing comma after
name: "organization_code_configuration_pk"})
(4th line from the bottom)Environment & setup
Windows 11, node v20.13.1, cli