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
You can't add a #[unique] column so that's fine -- #[primary_key] is implemented as adding a #[unique] constraint plus setting a primary key field on the TableDef. The #[unique] constraint is checked for but the primary key field ignored. This means that if you remove a #[primary_key] annotation -- the primary key will be removed in the ModuleDef but not in the system tables, I think.
The text was updated successfully, but these errors were encountered:
This is wrong.
You can't add a
#[unique]
column so that's fine --#[primary_key]
is implemented as adding a#[unique]
constraint plus setting a primary key field on the TableDef. The#[unique]
constraint is checked for but the primary key field ignored. This means that if you remove a#[primary_key]
annotation -- the primary key will be removed in the ModuleDef but not in the system tables, I think.The text was updated successfully, but these errors were encountered: