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
{{ message }}
Repository navigation
HasCheckConstraint does not work with columns starting with uppercase #1727
I am trying to run a migration where I use HasCheckConstraint method on one entity. For some reason it complains like the column is not there, but the column is present in the entity. I think somehow the column name is changed to lowercase and maybe is not able to find it the table, therefore throwing.
You need to quote the column name Version in the check constraint SQL - PostgreSQL folds unquoted identifiers to lower-case, which is why it's complaining about lower-case version not being found:
Activity
roji commentedon Feb 23, 2021
You need to quote the column name
Versionin the check constraint SQL - PostgreSQL folds unquoted identifiers to lower-case, which is why it's complaining about lower-caseversionnot being found: