diff options
author | Dave Arter <davea@mysociety.org> | 2016-08-03 13:44:00 +0100 |
---|---|---|
committer | Dave Arter <davea@mysociety.org> | 2016-08-22 11:33:45 +0100 |
commit | 05f04f40aa2c4fef44474f7057a92f6685387e7e (patch) | |
tree | a1cacec534da24c011c0c204b0b03c014e272eff /bin/update-schema | |
parent | 618b9a32cec0c045a8e3e910fd38f89f4aa9203a (diff) |
Allow user to have an area assigned in admin
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'); |