aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2015-12-04 15:34:18 +0000
committerMatthew Somerville <matthew@mysociety.org>2016-01-22 16:58:04 +0000
commit61573768a8bd0a9f6c3ec69d405f153121e07563 (patch)
tree04d81310769bcbc0b17eb7667520637ffc8b35b7 /bin
parent87903d2543e48654c18aa5036272a34266cbf72a (diff)
Prerequisites (new modules, db, config).
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 c6b197deb..1393178f8 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 '0039' if column_exists('users', 'facebook_id');
return '0038' if column_exists('admin_log', 'time_spent');
return '0037' if table_exists('response_templates');
return '0036' if constraint_contains('problem_cobrand_check', 'a-z0-9_');