aboutsummaryrefslogtreecommitdiffstats
path: root/bin/update-schema
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2016-01-27 10:34:55 +0000
committerMatthew Somerville <matthew@mysociety.org>2016-01-27 10:34:55 +0000
commitb8083a462aebf542f6f39c4201e1f09248b7e0e7 (patch)
treeab44be742664db2dd720efc03326db0acef22dde /bin/update-schema
parentac59f93b2228f5ff77ca7b7aff6fc3be54d360cd (diff)
parent5adabce92647a6b9e12887af7959efcfef4877d4 (diff)
Merge branch '1146-social-login'
Conflicts: templates/web/base/report/new/fill_in_details_form.html templates/web/base/report/update-form.html
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 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_');