zitadel/migrations/cockroach/V1.52__privacy_policy.sql

46 lines
983 B
MySQL
Raw Normal View History

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)
);