mirror of
https://github.com/Mezeporta/Erupe.git
synced 2026-03-21 23:22:34 +01:00
failsafe su8 upgrade schema
This commit is contained in:
11
Erupe/aio-upgrade.sql
Normal file
11
Erupe/aio-upgrade.sql
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
BEGIN;
|
||||||
|
|
||||||
|
ALTER TABLE IF EXISTS public.users
|
||||||
|
ALTER rights SET DEFAULT 14;
|
||||||
|
|
||||||
|
ALTER TABLE IF EXISTS public.users
|
||||||
|
ALTER rights SET NOT NULL;
|
||||||
|
|
||||||
|
UPDATE public.users SET rights=14 WHERE rights IS NULL;
|
||||||
|
|
||||||
|
END;
|
||||||
Reference in New Issue
Block a user