aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2019-02-12 14:01:38 +0000
committerMatthew Somerville <matthew-github@dracos.co.uk>2019-02-14 16:55:24 +0000
commitc2089e945132d36468f1d9a3bf08ae4d661cf44a (patch)
tree755780edf643ebd8babb910632eb259623fd8a24 /bin
parent1825a09bbdfee97928a251a84534d859b1a43387 (diff)
Allow user to be associated with multiple areas.
Update database to store an array of IDs rather than only one; consequential changes to the admin and the dashboard to allow selection.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/update-schema1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/update-schema b/bin/update-schema
index 1e1afa72c..9aff9ec5b 100755
--- a/bin/update-schema
+++ b/bin/update-schema
@@ -212,6 +212,7 @@ else {
# (assuming schema change files are never half-applied, which should be the case)
sub get_db_version {
return 'EMPTY' if ! table_exists('problem');
+ return '0066' if column_exists('users', 'area_ids');
return '0065' if constraint_contains('admin_log_object_type_check', 'moderation');
return '0064' if index_exists('moderation_original_data_problem_id_comment_id_idx');
return '0063' if column_exists('moderation_original_data', 'extra');