aboutsummaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
authorDave Arter <davea@mysociety.org>2017-08-17 13:28:47 +0100
committerDave Arter <davea@mysociety.org>2017-08-17 13:28:47 +0100
commitadfbe1c2ef9335e86e4f177db2eb2adfa6249e52 (patch)
treec110c92155be4cfeadd91d1d663df0684c341929 /db
parentdd1cefa2d7751d3c7fb8ca4f3cb2f35efc2a8fd5 (diff)
parentfb03c300258b5d1dc419d7d08ecb3afa12a2fa5b (diff)
Merge branch '1743-report-extras-editing'
Diffstat (limited to 'db')
-rw-r--r--db/downgrade_0053---0052.sql5
-rw-r--r--db/schema.sql8
-rw-r--r--db/schema_0053-add-report-extra-fields-table.sql11
3 files changed, 24 insertions, 0 deletions
diff --git a/db/downgrade_0053---0052.sql b/db/downgrade_0053---0052.sql
new file mode 100644
index 000000000..fdad6d0b8
--- /dev/null
+++ b/db/downgrade_0053---0052.sql
@@ -0,0 +1,5 @@
+BEGIN;
+
+DROP TABLE report_extra_fields;
+
+COMMIT;
diff --git a/db/schema.sql b/db/schema.sql
index af6570b7a..ed930a13e 100644
--- a/db/schema.sql
+++ b/db/schema.sql
@@ -538,3 +538,11 @@ CREATE TABLE translation (
msgstr text not null,
unique(tbl, object_id, col, lang)
);
+
+CREATE TABLE report_extra_fields (
+ id serial not null primary key,
+ name text not null,
+ cobrand text,
+ language text,
+ extra text
+);
diff --git a/db/schema_0053-add-report-extra-fields-table.sql b/db/schema_0053-add-report-extra-fields-table.sql
new file mode 100644
index 000000000..be92abd47
--- /dev/null
+++ b/db/schema_0053-add-report-extra-fields-table.sql
@@ -0,0 +1,11 @@
+BEGIN;
+
+CREATE TABLE report_extra_fields (
+ id serial not null primary key,
+ name text not null,
+ cobrand text,
+ language text,
+ extra text
+);
+
+COMMIT;