about summary refs log tree commit diff
path: root/db
diff options
context:
space:
mode:
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20200111042543_add_visibility_compat_toggle.rb7
-rw-r--r--db/structure.sql6
2 files changed, 11 insertions, 2 deletions
diff --git a/db/migrate/20200111042543_add_visibility_compat_toggle.rb b/db/migrate/20200111042543_add_visibility_compat_toggle.rb
new file mode 100644
index 000000000..38c8785c4
--- /dev/null
+++ b/db/migrate/20200111042543_add_visibility_compat_toggle.rb
@@ -0,0 +1,7 @@
+class AddVisibilityCompatToggle < ActiveRecord::Migration[5.2]
+  def change
+    safety_assured do
+      add_column :users, :monsterfork_api, :smallint, null: false, default: 2
+    end
+  end
+end
diff --git a/db/structure.sql b/db/structure.sql
index e3da0e923..6002bec8c 100644
--- a/db/structure.sql
+++ b/db/structure.sql
@@ -2398,7 +2398,8 @@ CREATE TABLE public.users (
     filter_timelines_only boolean DEFAULT false NOT NULL,
     media_only boolean DEFAULT false NOT NULL,
     filter_undescribed boolean DEFAULT false NOT NULL,
-    filters_enabled boolean DEFAULT false NOT NULL
+    filters_enabled boolean DEFAULT false NOT NULL,
+    monsterfork_api smallint DEFAULT 2 NOT NULL
 );
 
 
@@ -5397,6 +5398,7 @@ INSERT INTO "schema_migrations" (version) VALUES
 ('20200110213720'),
 ('20200110214031'),
 ('20200110221801'),
-('20200110221920');
+('20200110221920'),
+('20200111042543');