aboutsummaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
Diffstat (limited to 'db')
-rw-r--r--db/downgrade_0039---0038.sql4
-rw-r--r--db/schema.sql4
-rw-r--r--db/schema_0039-social-login.sql4
3 files changed, 11 insertions, 1 deletions
diff --git a/db/downgrade_0039---0038.sql b/db/downgrade_0039---0038.sql
new file mode 100644
index 000000000..62bbc42ef
--- /dev/null
+++ b/db/downgrade_0039---0038.sql
@@ -0,0 +1,4 @@
+begin;
+alter table users drop column twitter_id;
+alter table users drop column facebook_id;
+commit;
diff --git a/db/schema.sql b/db/schema.sql
index 72fccd7f3..3761553a5 100644
--- a/db/schema.sql
+++ b/db/schema.sql
@@ -27,7 +27,9 @@ create table users (
password text not null default '',
from_body integer,
flagged boolean not null default 'f',
- title text
+ title text,
+ twitter_id bigint unique,
+ facebook_id bigint unique
);
-- Record details of reporting bodies, including open311 configuration details
diff --git a/db/schema_0039-social-login.sql b/db/schema_0039-social-login.sql
new file mode 100644
index 000000000..ae55d5655
--- /dev/null
+++ b/db/schema_0039-social-login.sql
@@ -0,0 +1,4 @@
+begin;
+alter table users add column twitter_id bigint unique;
+alter table users add column facebook_id bigint unique;
+commit;