Add migrations for Remark model
This commit is contained in:
parent
bf5a320e3e
commit
b81c128460
14
migrations/5/down.sql
Normal file
14
migrations/5/down.sql
Normal 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
14
migrations/5/up.sql
Normal 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;
|
Loading…
Reference in New Issue
Block a user