You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
createtablepublic.organization_code_configuration
(
code_config_id integernot nullconstraint organization_code_configuration_code_configuration_code_config_
referencespublic.code_configurationonupdate cascade on delete restrict,
org_id uuid not nullconstraint organization_code_configuration_organization_org_id_fk
referencespublic.organizationonupdate cascade on delete cascade,
effective datenot null,
last_updated timestamp with time zonenot 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';
altertablepublic.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
The text was updated successfully, but these errors were encountered: