aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorDave Arter <davea@mysociety.org>2016-10-17 16:52:49 +0100
committerDave Arter <davea@mysociety.org>2016-10-19 14:44:55 +0100
commit58684be7a9b8fec8c90e6f94ecea0c21c3ae5e59 (patch)
tree446805366b3a8bc7181db5bc24180916f3c64d37 /bin
parent9756df6ab27f96d4f466ee98722baaf7e751c34f (diff)
Add ‘description’ field to ResponsePriority model
Used internally to provide more details about when a priority is applicable.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/update-schema1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/update-schema b/bin/update-schema
index 500e771f1..479a55c8e 100755
--- a/bin/update-schema
+++ b/bin/update-schema
@@ -194,6 +194,7 @@ else {
# By querying the database schema, we can see where we're currently at
# (assuming schema change files are never half-applied, which should be the case)
sub get_db_version {
+ return '0047' if column_exists('response_priorities', 'description');
return '0046' if column_exists('users', 'extra');
return '0045' if table_exists('response_priorities');
return '0044' if table_exists('contact_response_templates');