fix: transaction

This commit is contained in:
adlerhurst 2020-09-30 16:44:29 +02:00
parent e4d8478b04
commit 34783ba763
5 changed files with 4 additions and 18 deletions

View File

@ -1,5 +1,3 @@
BEGIN;
ALTER TABLE management.org_domains ADD COLUMN validation_type SMALLINT;
CREATE TABLE adminapi.users (
@ -40,5 +38,3 @@ CREATE TABLE adminapi.users (
PRIMARY KEY (id)
);
COMMIT;

View File

@ -1,15 +1,11 @@
BEGIN;
ALTER TABLE management.applications ADD COLUMN origin_allow_list TEXT ARRAY;
ALTER TABLE auth.applications ADD COLUMN origin_allow_list TEXT ARRAY;
ALTER TABLE authz.applications ADD COLUMN origin_allow_list TEXT ARRAY;
TRUNCATE TABLE management.applications;
TRUNCATE TABLE auth.applications;
TRUNCATE TABLE authz.applications;
DELETE FROM management.applications;
DELETE FROM auth.applications;
DELETE FROM authz.applications;
UPDATE management.current_sequences set current_sequence = 0 where view_name = 'management.applications';
UPDATE auth.current_sequences set current_sequence = 0 where view_name = 'auth.applications';
UPDATE authz.current_sequences set current_sequence = 0 where view_name = 'authz.applications';
COMMIT;

View File

@ -1,4 +1,3 @@
CREATE TABLE adminapi.idp_configs (
idp_config_id TEXT,

View File

@ -1,7 +1,3 @@
BEGIN;
ALTER TABLE management.users ADD COLUMN username_change_required BOOLEAN;
ALTER TABLE auth.users ADD COLUMN username_change_required BOOLEAN;
ALTER TABLE adminapi.users ADD COLUMN username_change_required BOOLEAN;
COMMIT;
ALTER TABLE adminapi.users ADD COLUMN username_change_required BOOLEAN;

View File

@ -1,2 +1 @@
ALTER TABLE auth.tokens ADD COLUMN preferred_language TEXT;