aboutsummaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
Diffstat (limited to 'db')
-rw-r--r--db/schema.sql1
-rw-r--r--db/schema_0048-response-templates-add-state.sql6
2 files changed, 7 insertions, 0 deletions
diff --git a/db/schema.sql b/db/schema.sql
index d3bb5040e..e54c6b7b2 100644
--- a/db/schema.sql
+++ b/db/schema.sql
@@ -486,6 +486,7 @@ create table response_templates (
text text not null,
created timestamp not null default current_timestamp,
auto_response boolean NOT NULL DEFAULT 'f',
+ state text,
unique(body_id, title)
);
diff --git a/db/schema_0048-response-templates-add-state.sql b/db/schema_0048-response-templates-add-state.sql
new file mode 100644
index 000000000..1bc95ee6d
--- /dev/null
+++ b/db/schema_0048-response-templates-add-state.sql
@@ -0,0 +1,6 @@
+BEGIN;
+
+ALTER TABLE response_templates
+ ADD COLUMN state TEXT;
+
+COMMIT;