[MM-63428] add access control policy store (#30597)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
3eb854c58d
Коммит
10b1f4c5ac
@@ -263,6 +263,8 @@ channels/db/migrations/mysql/000132_create_index_pagination_on_property_fields.d
|
||||
channels/db/migrations/mysql/000132_create_index_pagination_on_property_fields.up.sql
|
||||
channels/db/migrations/mysql/000133_add_channel_banner_fields.down.sql
|
||||
channels/db/migrations/mysql/000133_add_channel_banner_fields.up.sql
|
||||
channels/db/migrations/mysql/000134_create_access_control_policies.down.sql
|
||||
channels/db/migrations/mysql/000134_create_access_control_policies.up.sql
|
||||
channels/db/migrations/postgres/000001_create_teams.down.sql
|
||||
channels/db/migrations/postgres/000001_create_teams.up.sql
|
||||
channels/db/migrations/postgres/000002_create_team_members.down.sql
|
||||
@@ -527,3 +529,5 @@ channels/db/migrations/postgres/000132_create_index_pagination_on_property_field
|
||||
channels/db/migrations/postgres/000132_create_index_pagination_on_property_fields.up.sql
|
||||
channels/db/migrations/postgres/000133_add_channel_banner_fields.down.sql
|
||||
channels/db/migrations/postgres/000133_add_channel_banner_fields.up.sql
|
||||
channels/db/migrations/postgres/000134_create_access_control_policies.down.sql
|
||||
channels/db/migrations/postgres/000134_create_access_control_policies.up.sql
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
DROP TABLE IF EXISTS AccessControlPolicyHistory;
|
||||
DROP TABLE IF EXISTS AccessControlPolicies;
|
||||
@@ -0,0 +1,23 @@
|
||||
CREATE TABLE IF NOT EXISTS AccessControlPolicies (
|
||||
ID varchar(26) PRIMARY KEY,
|
||||
Name varchar(128) NOT NULL,
|
||||
Type varchar(128) NOT NULL,
|
||||
Active bool NOT NULL,
|
||||
CreateAt bigint(20) NOT NULL,
|
||||
Revision int NOT NULL,
|
||||
Version varchar(8) NOT NULL,
|
||||
Data json,
|
||||
Props json
|
||||
);
|
||||
|
||||
CREATE TABLE IF NOT EXISTS AccessControlPolicyHistory (
|
||||
ID varchar(26) NOT NULL,
|
||||
Name varchar(128) NOT NULL,
|
||||
Type varchar(128) NOT NULL,
|
||||
CreateAt bigint(20) NOT NULL,
|
||||
Revision int NOT NULL,
|
||||
Version varchar(8) NOT NULL,
|
||||
Data json,
|
||||
Props json,
|
||||
PRIMARY KEY (ID, Revision)
|
||||
);
|
||||
@@ -0,0 +1,2 @@
|
||||
DROP TABLE IF EXISTS AccessControlPolicyHistory;
|
||||
DROP TABLE IF EXISTS AccessControlPolicies;
|
||||
@@ -0,0 +1,23 @@
|
||||
CREATE TABLE IF NOT EXISTS AccessControlPolicies (
|
||||
ID varchar(26) PRIMARY KEY,
|
||||
Name varchar(128) NOT NULL,
|
||||
Type varchar(128) NOT NULL,
|
||||
Active bool NOT NULL,
|
||||
CreateAt bigint NOT NULL,
|
||||
Revision int NOT NULL,
|
||||
Version varchar(8) NOT NULL,
|
||||
Data jsonb,
|
||||
Props jsonb
|
||||
);
|
||||
|
||||
CREATE TABLE IF NOT EXISTS AccessControlPolicyHistory (
|
||||
ID varchar(26) NOT NULL,
|
||||
Name varchar(128) NOT NULL,
|
||||
Type varchar(128) NOT NULL,
|
||||
CreateAt bigint NOT NULL,
|
||||
Revision int NOT NULL,
|
||||
Version varchar(8) NOT NULL,
|
||||
Data jsonb,
|
||||
Props jsonb,
|
||||
PRIMARY KEY (ID, Revision)
|
||||
);
|
||||
Ссылка в новой задаче
Block a user