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
When I execute ·sea-orm-cli migrate-v·, the console prompts:
2024-10-16T14:13:34.698031Z INFO sqlx::query: summary="CREATE TABLE IF NOT …" db.statement="\n\nCREATE TABLE IF NOT EXISTS \"url_mapping\" (\n \"id\" serial NOT NULL PRIMARY KEY,\n \"source_url\" char(255) NOT NULL NOT NULL,\n \"target_url_protocol\" char(255) NOT NULL NOT NULL,\n \"target_url_domain\" char(255) NOT NULL NOT NULL,\n \"target_url_path\" char(255) NOT NULL NOT NULL,\n \"created_at\" timestamp without time zone NOT NULL NOT NULL,\n \"expired_at\" timestamp without time zone NOT NULL NULL,\n \"deleted_at\" timestamp without time zone NOT NULL\n)\n" rows_affected=0 rows_returned=0 elapsed=1.81815ms elapsed_secs=0.00181815
Execution Error: error returned from database: conflicting NULL/NOT NULL declarations for column "expired_at" of table "url_mapping"
Fail to run migration
NOT NULL NULL appears simultaneously in the ddl statement
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: