-
-
Notifications
You must be signed in to change notification settings - Fork 568
Cannot set column to nullable #2396
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
When using SQLite, it does not report errors, but it also does not take effect |
Using |
I've also encountered this issue. Have you found a version without this bug? I'm using PostgreSQL 16 and sea-orm-migration 1.1.7. All data fields default to NOT NULL, and if I force them to NULL, conflicts occur. |
I understand your point now, thank you so much! This behavior is quite counterintuitive and opposite to database conventions. By default, fields are not_null, and then some fields have xx_null or xx_nulq, and you can also use .null(). I can't imagine how long it would take to find the problem without auto-completion. |
Description
When I execute ·sea-orm-cli migrate-v·, the console prompts:
NOT NULL NULL
appears simultaneously in the ddl statementReproducible Example
https://github.com/ou-bing/seaorm_null_err
Versions
sea-orm-cli 1.1.0
sea-orm-migration 1.1.0
rustc 1.81.0
postgres 17
The text was updated successfully, but these errors were encountered: