diff options
author | Dave Arter <davea@mysociety.org> | 2016-07-15 17:02:56 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2016-08-09 14:44:07 +0100 |
commit | 0c31945416238d7eb06543c107214adfd4b83734 (patch) | |
tree | 1365a012bb5e2bd19e84d827afd2878ae16f7433 /bin | |
parent | 0cecc6857351bfe9a80240a8c0910debd9f8dbe9 (diff) |
Remove check constraint on user body permissions.
We'll soon be adding more new permission types.
Diffstat (limited to 'bin')
-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 8f74f34f1..99071f3ea 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 '0041' if column_exists('users', 'is_superuser') && ! constraint_exists('user_body_permissions_permission_type_check'); return '0040' if column_exists('users', 'is_superuser'); return '0039' if column_exists('users', 'facebook_id'); return '0038' if column_exists('admin_log', 'time_spent'); |