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(db): add `schema_migration_type` column to `project` table (#2388)
Joe Chena4f96020b880
diff --git a/store/migration/dev/20220807000000__add_project_schema_migration_type.sql b/store/migration/dev/20220807000000__add_project_schema_migration_type.sqlnew file mode 100644index 0000000000..0686b6bb79--- /dev/null+++ b/store/migration/dev/20220807000000__add_project_schema_migration_type.sql@@ -0,0 +1 @@+ALTER TABLE project ADD COLUMN schema_migration_type TEXT NOT NULL CHECK (schema_migration_type IN ('DDL', 'SDL')) DEFAULT 'DDL';diff --git a/store/migration/dev/LATEST.sql b/store/migration/dev/LATEST.sqlindex 270cc44aac..c4e12919c5 100644--- a/store/migration/dev/LATEST.sql+++ b/store/migration/dev/LATEST.sql@@ -169,7 +169,8 @@ CREATE TABLE project (-- Empty value means {{DB_NAME}}.db_name_template TEXT NOT NULL,role_provider TEXT NOT NULL CHECK (role_provider IN ('BYTEBASE', 'GITLAB_SELF_HOST', 'GITHUB_COM')) DEFAULT 'BYTEBASE',- schema_version_type TEXT NOT NULL CHECK (schema_version_type IN ('TIMESTAMP', 'SEMANTIC')) DEFAULT 'TIMESTAMP'+ schema_version_type TEXT NOT NULL CHECK (schema_version_type IN ('TIMESTAMP', 'SEMANTIC')) DEFAULT 'TIMESTAMP',+ schema_migration_type TEXT NOT NULL CHECK (schema_migration_type IN ('DDL', 'SDL')) DEFAULT 'DDL');CREATE UNIQUE INDEX idx_project_unique_key ON project(key);