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
Don't ask how, but we have to deal with some legacy MSSQL tables that look like this:
create table foo
(
foo_id integer not null,
name varchar(50)
);
create unique index if not exists idx_foo_id
on foo (foo_id);
Modify auto-builder.ts to detect this joyous occasion and treat foo_id as a primary key. This is similar to the logic for #480 , and that block of cod would be a good insertion point for this logic. The indexes are loaded just above that.
The text was updated successfully, but these errors were encountered:
hhowe29
pushed a commit
to hhowe29/sequelize-auto
that referenced
this issue
Mar 11, 2023
hhowe29
changed the title
Treat a single column unique index as a primary key if no primary key was found
Treat a single column, nonnull unique index as a primary key if no primary key was found
Mar 11, 2023
hhowe29
added a commit
to hhowe29/sequelize-auto
that referenced
this issue
Mar 11, 2023
Don't ask how, but we have to deal with some legacy MSSQL tables that look like this:
Modify auto-builder.ts to detect this joyous occasion and treat
foo_id
as a primary key. This is similar to the logic for #480 , and that block of cod would be a good insertion point for this logic. The indexes are loaded just above that.The text was updated successfully, but these errors were encountered: