Files
ent/examples/migration/ent/migrate/migrations/20221114090322_add_age.sql

3 lines
99 B
SQL

-- modify "users" table
ALTER TABLE `users` ADD CHECK (age > 0), ADD COLUMN `age` double NOT NULL;