Simplify UX of compliance access management
Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
14
pkg/coredata/migrations/20260210T120000Z.sql
Normal file
14
pkg/coredata/migrations/20260210T120000Z.sql
Normal file
@@ -0,0 +1,14 @@
|
||||
CREATE TYPE trust_center_access_state AS ENUM ('ACTIVE', 'INACTIVE');
|
||||
|
||||
ALTER TABLE trust_center_accesses
|
||||
ADD COLUMN state trust_center_access_state NOT NULL DEFAULT 'INACTIVE';
|
||||
|
||||
UPDATE trust_center_accesses
|
||||
SET state = 'ACTIVE'
|
||||
WHERE active = true;
|
||||
|
||||
ALTER TABLE trust_center_accesses
|
||||
DROP COLUMN active;
|
||||
|
||||
ALTER TABLE trust_center_accesses
|
||||
ALTER COLUMN state DROP DEFAULT;
|
||||
Reference in New Issue
Block a user