From fd29f842fdd0ee6d27ca10d35eee506eb6dec21d Mon Sep 17 00:00:00 2001 From: evazion Date: Tue, 19 Nov 2019 00:13:24 -0600 Subject: [PATCH] db: drop keeper_data from posts. --- db/migrate/20191119061018_drop_keeper_data_from_posts.rb | 5 +++++ db/structure.sql | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 db/migrate/20191119061018_drop_keeper_data_from_posts.rb diff --git a/db/migrate/20191119061018_drop_keeper_data_from_posts.rb b/db/migrate/20191119061018_drop_keeper_data_from_posts.rb new file mode 100644 index 000000000..d439cdd85 --- /dev/null +++ b/db/migrate/20191119061018_drop_keeper_data_from_posts.rb @@ -0,0 +1,5 @@ +class DropKeeperDataFromPosts < ActiveRecord::Migration[6.0] + def change + remove_column :posts, :keeper_data, :text + end +end diff --git a/db/structure.sql b/db/structure.sql index d5d5acad3..fcc13da9c 100644 --- a/db/structure.sql +++ b/db/structure.sql @@ -2222,8 +2222,7 @@ CREATE TABLE public.posts ( last_commented_at timestamp without time zone, has_active_children boolean DEFAULT false, bit_flags bigint DEFAULT 0 NOT NULL, - tag_count_meta integer DEFAULT 0 NOT NULL, - keeper_data text + tag_count_meta integer DEFAULT 0 NOT NULL ); ALTER TABLE ONLY public.posts ALTER COLUMN tag_index SET STATISTICS 2000; @@ -7397,6 +7396,7 @@ INSERT INTO "schema_migrations" (version) VALUES ('20191117074642'), ('20191117080647'), ('20191117081229'), -('20191117200404'); +('20191117200404'), +('20191119061018');