aboutsummaryrefslogtreecommitdiffstats
path: root/bin/update-schema
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2019-12-10 16:10:45 +0000
committerMatthew Somerville <matthew@mysociety.org>2019-12-10 16:24:16 +0000
commitfccaeb5bddf034e7e3e35184e8e49748e3a77113 (patch)
treeb2a42d5732e2a0baf3578138d3e060b608ae9d72 /bin/update-schema
parent7c844acae6bbb7f5d64db8d23fb6f01ccb829e5e (diff)
Do not hard code site name in database fixture.
This also lets it be cobrand specific.
Diffstat (limited to 'bin/update-schema')
-rwxr-xr-xbin/update-schema1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/update-schema b/bin/update-schema
index 4755142bb..807e144eb 100755
--- a/bin/update-schema
+++ b/bin/update-schema
@@ -212,6 +212,7 @@ else {
# (assuming schema change files are never half-applied, which should be the case)
sub get_db_version {
return 'EMPTY' if ! table_exists('problem');
+ return '0070' if column_like('alert_type', "ref='new_problems'", 'head_title', '{{SITE_NAME}}');
return '0069' if constraint_contains('admin_log_object_type_check', 'template');
return '0068' if column_exists('users', 'oidc_ids');
return '0067' if table_exists('roles');