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
Text schema is prepended to the DROP SEQUENCE and setval suggestions instead of using ${schemaObject.name} to get the actual schema. The actual schema is used for the ALTER TABLE suggestions.
Here is the output:
ALTERTABLE"public"."days" ALTER "id" DROP DEFAULT;
DROPSEQUENCE"schema"."days_id_seq";
ALTERTABLE"public"."days" ALTER "id" ADD GENERATED BY DEFAULT AS IDENTITY;
SELECT setval('"days_id_seq"', max("id")) FROM"schema"."days";
SELECT setval('"${sequenceName}"', max("${columnName}")) FROM "schema"."${tableName}";`,
I'd be happy to submit a PR for a fix if this is indeed an issue.
The text was updated successfully, but these errors were encountered:
eebbesen
changed the title
Hard-coded schema on two lines in suggested migration in preferIdentity type rule
Hard-coded schema on two lines for suggested migration in preferIdentity type rule
Dec 30, 2023
Text
schema
is prepended to theDROP SEQUENCE
andsetval
suggestions instead of using${schemaObject.name}
to get the actual schema. The actual schema is used for theALTER TABLE
suggestions.Here is the output:
schemalint/src/rules/types.ts
Line 106 in d004c63
schemalint/src/rules/types.ts
Line 108 in d004c63
I'd be happy to submit a PR for a fix if this is indeed an issue.
The text was updated successfully, but these errors were encountered: