fedimovies/fedimovies-models/migrations/V0004__post__add_reply_count.sql

2 lines
93 B
MySQL
Raw Normal View History

ALTER TABLE post ADD COLUMN reply_count INTEGER NOT NULL CHECK (reply_count >= 0) DEFAULT 0;