about summary refs log tree commit diff
path: root/db
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2020-01-10 23:04:14 -0600
committermultiple creatures <dev@multiple-creature.party>2020-01-10 23:04:14 -0600
commit0f1532aee098049b17ad6b7ecb1d083c856f1d64 (patch)
tree75629111cd2530dc2cfa66ea2c474e9ed14d1581 /db
parentce72d574879b95bd3da5959062d04037945f292f (diff)
add option for changing the monsterfork api exposure level, defaulting to `full` - if this gives your app indigestion change it to back to `basic` in preferences
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');