schema fixes
This commit is contained in:
@@ -2961,7 +2961,7 @@ alter table notes drop constraint fk_notes__user;
|
||||
drop trigger trg_note_search_update on notes;
|
||||
alter table notes rename column user_id to creator_id;
|
||||
alter table notes rename column text_search_index to body_index;
|
||||
alter index comments_text_search_idx rename to index_notes_on_body_index;
|
||||
create index index_notes_on_body_index on notes using gin (body_index);
|
||||
alter index idx_notes__post rename to index_notes_on_post_id;
|
||||
drop index notes_text_search_idx;
|
||||
CREATE TRIGGER trigger_notes_on_update BEFORE INSERT OR UPDATE ON notes FOR EACH ROW EXECUTE PROCEDURE tsvector_update_trigger('body_index', 'pg_catalog.english', 'body');
|
||||
@@ -3050,7 +3050,6 @@ create index index_posts_on_uploader_ip_addr on posts (uploader_ip_addr);
|
||||
drop function trg_posts_tags__delete();
|
||||
drop function trg_posts_tags__insert();
|
||||
update posts set uploader_id = 1 where uploader_id is null;
|
||||
create index index_posts_on_created_at_date on posts (date(created_at));
|
||||
alter table post_appeals rename column user_id to creator_id;
|
||||
alter index index_post_appeals_on_user_id rename to index_post_appeals_on_creator_id;
|
||||
alter table post_appeals rename column ip_addr to creator_ip_addr;
|
||||
|
||||
Reference in New Issue
Block a user