zitadel/migrations/cockroach/V1.52__privacy_policy.sql
2021-07-05 09:00:22 +00:00

46 lines
983 B
SQL

ALTER TABLE adminapi.features ADD COLUMN privacy_policy BOOLEAN;
ALTER TABLE auth.features ADD COLUMN privacy_policy BOOLEAN;
ALTER TABLE authz.features ADD COLUMN privacy_policy BOOLEAN;
ALTER TABLE management.features ADD COLUMN privacy_policy BOOLEAN;
CREATE TABLE auth.privacy_policies (
aggregate_id TEXT,
creation_date TIMESTAMPTZ,
change_date TIMESTAMPTZ,
state SMALLINT,
sequence BIGINT,
tos_link STRING,
privacy_link STRING,
PRIMARY KEY (aggregate_id)
);
CREATE TABLE adminapi.privacy_policies (
aggregate_id TEXT,
creation_date TIMESTAMPTZ,
change_date TIMESTAMPTZ,
state SMALLINT,
sequence BIGINT,
tos_link STRING,
privacy_link STRING,
PRIMARY KEY (aggregate_id)
);
CREATE TABLE management.privacy_policies (
aggregate_id TEXT,
creation_date TIMESTAMPTZ,
change_date TIMESTAMPTZ,
state SMALLINT,
sequence BIGINT,
tos_link STRING,
privacy_link STRING,
PRIMARY KEY (aggregate_id)
);