PostText/migrations/5/up.sql

29 lines
495 B
MySQL
Raw Normal View History

2022-08-22 11:00:45 -04:00
ALTER TABLE replies
RENAME TO remarks;
ALTER TABLE remarks
2022-08-22 12:27:08 -04:00
RENAME reply_id
TO remark_id;
2022-08-22 11:00:45 -04:00
ALTER TABLE remarks
2022-08-22 12:27:08 -04:00
RENAME reply_date
TO remark_date;
2022-08-22 11:00:45 -04:00
ALTER TABLE remarks
2022-08-22 12:27:08 -04:00
RENAME reply_author
TO remark_author;
2022-08-22 11:00:45 -04:00
ALTER TABLE remarks
2022-08-22 12:27:08 -04:00
RENAME reply_body
TO remark_body;
ALTER TABLE remarks
RENAME CONSTRAINT replies_thread_id_fkey
TO remarks_thread_id_fkey;
ALTER INDEX replies_pkey
RENAME TO remarks_pkey;
ALTER SEQUENCE replies_reply_id_seq
RENAME TO remarks_remark_id_seq;