summaryrefslogtreecommitdiff
path: root/schema/migrations
diff options
context:
space:
mode:
authorAaron Parecki <aaron@parecki.com>2017-01-17 09:24:41 -0800
committerAaron Parecki <aaron@parecki.com>2017-01-17 09:24:41 -0800
commit0e8ee9973a550a3ab0a2069d9a12b683651b7d9b (patch)
treea6f5449d8dd09e815ad659396a1aaa350354215e /schema/migrations
parent3bdcd009c8817df5275041d5c4d72c716d660456 (diff)
use `mp-syndicate-to` by default, add setting
* adds setting to choose the property to use for the syndication targets * all existing users default to the old value `syndicate-to` * new users default to `mp-syndicate-to` closes #66
Diffstat (limited to 'schema/migrations')
-rw-r--r--schema/migrations/0004.sql5
1 files changed, 5 insertions, 0 deletions
diff --git a/schema/migrations/0004.sql b/schema/migrations/0004.sql
new file mode 100644
index 0000000..8b74018
--- /dev/null
+++ b/schema/migrations/0004.sql
@@ -0,0 +1,5 @@
+ALTER TABLE users
+ADD COLUMN `micropub_syndicate_field` VARCHAR(255) NOT NULL DEFAULT 'mp-syndicate-to' AFTER `micropub_slug_field`;
+
+UPDATE users
+SET micropub_syndicate_field = 'syndicate-to';