Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
feat: add mfa related fields to principal table (#4969)
boojack51cb1209ce91
diff --git a/backend/store/migration/dev/20230303000000##principal_mfa_config.sql b/backend/store/migration/dev/20230303000000##principal_mfa_config.sqlnew file mode 100644index 0000000000..b65d0bcbd8--- /dev/null+++ b/backend/store/migration/dev/20230303000000##principal_mfa_config.sql@@ -0,0 +1 @@+ALTER TABLE principal ADD mfa_config JSONB NOT NULL DEFAULT '{}';diff --git a/backend/store/migration/dev/LATEST.sql b/backend/store/migration/dev/LATEST.sqlindex 0d06a0fbb1..a720bdb51f 100644--- a/backend/store/migration/dev/LATEST.sql+++ b/backend/store/migration/dev/LATEST.sql@@ -47,7 +47,8 @@ CREATE TABLE principal (email TEXT NOT NULL,password_hash TEXT NOT NULL,idp_id INTEGER REFERENCES idp (id),- idp_user_info JSONB NOT NULL DEFAULT '{}'+ idp_user_info JSONB NOT NULL DEFAULT '{}',+ mfa_config JSONB NOT NULL DEFAULT '{}');CREATE TRIGGER update_principal_updated_ts