fp/services/migrations-schema/migrations/00007_add-default-records-t...

7 lines
232 B
MySQL
Raw Normal View History

2024-08-17 02:42:44 +00:00
ALTER TABLE IF EXISTS api.records
ADD CONSTRAINT created_at_not_null
CHECK (created_at IS NOT NULL) NOT VALID;
ALTER TABLE IF EXISTS api.records
ADD CONSTRAINT updated_at_not_null
CHECK (updated_at IS NOT NULL) NOT VALID;