diff options
author | Dave Arter <davea@mysociety.org> | 2016-08-22 11:34:02 +0100 |
---|---|---|
committer | Dave Arter <davea@mysociety.org> | 2016-08-22 11:34:02 +0100 |
commit | ec5e2c47f736c075e6dafd1ed63860287f596077 (patch) | |
tree | a1cacec534da24c011c0c204b0b03c014e272eff /bin/update-schema | |
parent | 618b9a32cec0c045a8e3e910fd38f89f4aa9203a (diff) | |
parent | 05f04f40aa2c4fef44474f7057a92f6685387e7e (diff) |
Merge branch 'issues/forcouncils/37-user-area-management'
Diffstat (limited to 'bin/update-schema')
-rwxr-xr-x | bin/update-schema | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/update-schema b/bin/update-schema index 09155fa03..e8f2e2cbd 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 '0043' if column_exists('users', 'area_id'); return '0042' if table_exists('user_planned_reports'); return '0041' if column_exists('users', 'is_superuser') && ! constraint_exists('user_body_permissions_permission_type_check'); return '0040' if column_exists('users', 'is_superuser'); |