This commit is contained in:
Jan Kvetina 2022-01-05 18:18:34 +01:00
parent d4ab158a9a
commit e0ca9191f1

View File

@ -21,10 +21,7 @@ CREATE TABLE user_roles (
CONSTRAINT fk_users_roles_role_id
FOREIGN KEY (app_id, role_id)
REFERENCES roles (app_id, role_id)
DEFERRABLE INITIALLY DEFERRED,
--
CONSTRAINT ch_user_roles_is_active
CHECK (is_active = 'Y' OR is_active IS NULL)
DEFERRABLE INITIALLY DEFERRED
)
STORAGE (BUFFER_POOL KEEP);
--