Add sar commands
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
BEGIN;
|
||||
CREATE TYPE role_type_new AS ENUM (
|
||||
'normal',
|
||||
'moderator',
|
||||
'admin',
|
||||
'patreon',
|
||||
);
|
||||
UPDATE roles SET role_type = 'normal' WHERE role_type = 'sar';
|
||||
ALTER TABLE roles
|
||||
ALTER COLUMN roles TYPE role_type_new;
|
||||
USING (roles::text::role_type_new)
|
||||
DROP TYPE role_type;
|
||||
ALTER TYPE role_type_new RENAME TO role_type;
|
||||
COMMIT;
|
||||
@@ -0,0 +1 @@
|
||||
ALTER TYPE role_type ADD VALUE 'sar';
|
||||
Reference in New Issue
Block a user