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
Currently, there's no way to add check constraint and other unsupported settings so the the export SQL is correctly equivalent.
The work-around is only mean to make the dbml valid. Instead of putting the constraint in the column type, you can try to annotate the constraint in field note, like this:
Problem
The workaround for un-supported settings by adding the setting name into the column type name, such as id “bigint unsigned” [pk] doesn't work
Example
Take an example DBML file:
When I convert that to Postgresql, it looks like:
Which then throwing error when attempting to execute query
pq: type "integer check (totalPrice > 0)" does not exist
The text was updated successfully, but these errors were encountered: