aboutsummaryrefslogtreecommitdiffstats
path: root/db/schema.sql
diff options
context:
space:
mode:
authorDave Arter <davea@mysociety.org>2015-10-06 11:50:48 +0100
committerDave Arter <davea@mysociety.org>2015-10-06 11:50:48 +0100
commit2ed2c57659c0d288cd1cec391baef9faf002030d (patch)
tree742c5ad6e4671050805292061f85e9ff6ec308a0 /db/schema.sql
parentde8ba7899dd4692cdf062f4b2735157f7fd14cb7 (diff)
parentffc03ca3330a43a98a3728df6f3d56c7fc1837d1 (diff)
Merge branch 'zurich-2015-dev-candidate'
This is the work done in early 2015 to improve the Zürich admin interface, primarily.
Diffstat (limited to 'db/schema.sql')
-rw-r--r--db/schema.sql12
1 files changed, 11 insertions, 1 deletions
diff --git a/db/schema.sql b/db/schema.sql
index 2db89bddb..72fccd7f3 100644
--- a/db/schema.sql
+++ b/db/schema.sql
@@ -427,7 +427,8 @@ create table admin_log (
action text not null,
whenedited timestamp not null default current_timestamp,
user_id int references users(id) null,
- reason text not null default ''
+ reason text not null default '',
+ time_spent int not null default 0
);
create table moderation_original_data (
@@ -457,3 +458,12 @@ create table user_body_permissions (
),
unique(user_id, body_id, permission_type)
);
+
+create table response_templates (
+ id serial not null primary key,
+ body_id int references body(id) not null,
+ title text not null,
+ text text not null,
+ created timestamp not null default current_timestamp,
+ unique(body_id, title)
+);