From 05f04f40aa2c4fef44474f7057a92f6685387e7e Mon Sep 17 00:00:00 2001 From: Dave Arter Date: Wed, 3 Aug 2016 13:44:00 +0100 Subject: Allow user to have an area assigned in admin --- bin/update-schema | 1 + 1 file changed, 1 insertion(+) (limited to 'bin') 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'); -- cgit v1.2.3