MarseyWorld/migrations/20240218-rename-columns.sql

14 lines
605 B
MySQL
Raw Normal View History

2024-02-18 15:29:53 +00:00
alter table posts rename column private to draft;
alter table posts rename column is_pinned to profile_pinned;
alter table posts rename column stickied to pinned;
alter table posts rename column stickied_utc to pinned_utc;
alter table comments rename column stickied to pinned;
alter table comments rename column stickied_utc to pinned_utc;
alter index post_is_pinned_idx rename to post_profile_pinned_idx;
alter index posts_stickied_idx rename to post_pinned_idex;
alter index post_sticked_utc_idx rename to post_pinned_utc_idex;
alter index comment_sticked_utc_idx rename to comment_pinned_utc_idex;