zitadel/migrations/cockroach/V1.48__custom_text.sql
Fabi bdf3887f9e
feat: custom message text (#1801)
* feat: default custom message text

* feat: org custom message text

* feat: org custom message text

* feat: custom messages query side

* feat: default messages

* feat: message text user fields

* feat: check for inactive user

* feat: fix send password reset

* feat: fix custom org text

* feat: add variables to docs

* feat: custom text tests

* feat: fix notifications

* feat: add custom text feature

* feat: add custom text feature

* feat: feature in custom message texts

* feat: add custom text feature in frontend

* feat: merge main

* feat: feature tests

* feat: change phone message in setup

* fix: remove unused code, add event translation

* fix: merge main and fix problems

* fix: english translation file

* fix: migration versions

* fix: setup

* feat: fix pr requests

* feat: fix phone code message

* feat: migration

* feat: setup

* fix: remove unused tests

Co-authored-by: Livio Amstutz <livio.a@gmail.com>
2021-06-10 11:49:10 +00:00

54 lines
1.3 KiB
SQL

ALTER TABLE adminapi.features ADD COLUMN custom_text BOOLEAN;
ALTER TABLE auth.features ADD COLUMN custom_text BOOLEAN;
ALTER TABLE authz.features ADD COLUMN custom_text BOOLEAN;
ALTER TABLE management.features ADD COLUMN custom_text BOOLEAN;
CREATE TABLE adminapi.message_texts (
aggregate_id TEXT,
creation_date TIMESTAMPTZ,
change_date TIMESTAMPTZ,
message_text_state SMALLINT,
sequence BIGINT,
message_text_type TEXT,
language TEXT,
title TEXT,
pre_header TEXT,
subject TEXT,
greeting TEXT,
text TEXT,
button_text TEXT,
footer_text TEXT,
PRIMARY KEY (aggregate_id, message_text_type, language)
);
CREATE TABLE management.message_texts (
aggregate_id TEXT,
creation_date TIMESTAMPTZ,
change_date TIMESTAMPTZ,
message_text_state SMALLINT,
sequence BIGINT,
message_text_type TEXT,
language TEXT,
title TEXT,
pre_header TEXT,
subject TEXT,
greeting TEXT,
text TEXT,
button_text TEXT,
footer_text TEXT,
PRIMARY KEY (aggregate_id, message_text_type, language)
);
GRANT SELECT ON TABLE adminapi.message_texts TO notification;
GRANT SELECT ON TABLE management.message_texts TO notification;
ALTER TABLE management.message_texts OWNER TO admin;
ALTER TABLE adminapi.message_texts OWNER TO admin;