summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2020-04-26 11:11:08 +0200
committerYorhel <git@yorhel.nl>2020-04-26 11:11:08 +0200
commit0d48607c50d9627d41249d30bb1125fe18fb8683 (patch)
treeeacef79310956fdeb4e914b014e9493e3845b957 /util
parent07360ebcca0a5f0ff2597c49eadc156755208262 (diff)
imgflag: Add separate "imgmod" permission flag
Diffstat (limited to 'util')
-rw-r--r--util/updates/2020-04-26-perm-imgmod.sql3
1 files changed, 3 insertions, 0 deletions
diff --git a/util/updates/2020-04-26-perm-imgmod.sql b/util/updates/2020-04-26-perm-imgmod.sql
new file mode 100644
index 00000000..dabe3dfd
--- /dev/null
+++ b/util/updates/2020-04-26-perm-imgmod.sql
@@ -0,0 +1,3 @@
+ALTER TABLE users ADD COLUMN perm_imgmod boolean NOT NULL DEFAULT false;
+UPDATE users SET perm_imgmod = perm_dbmod;
+\i sql/perms.sql