Add migrations for Remark model

This commit is contained in:
swaggboi 2022-08-22 11:00:45 -04:00
parent bf5a320e3e
commit b81c128460
2 changed files with 28 additions and 0 deletions

14
migrations/5/down.sql Normal file
View File

@ -0,0 +1,14 @@
ALTER TABLE remarks
RENAME TO replies;
ALTER TABLE replies
RENAME remark_id TO reply_id;
ALTER TABLE replies
RENAME remark_date TO reply_date;
ALTER TABLE replies
RENAME remark_author TO reply_author;
ALTER TABLE replies
RENAME remark_body TO reply_body;

14
migrations/5/up.sql Normal file
View File

@ -0,0 +1,14 @@
ALTER TABLE replies
RENAME TO remarks;
ALTER TABLE remarks
RENAME reply_id TO remark_id;
ALTER TABLE remarks
RENAME reply_date TO remark_date;
ALTER TABLE remarks
RENAME reply_author TO remark_author;
ALTER TABLE remarks
RENAME reply_body TO remark_body;