Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: consistent with latest schema (#15181)
Danny Xuf7b0bd1bf48a
diff --git a/backend/migrator/migration/3.4/0008##latest_consistent.sql b/backend/migrator/migration/3.4/0008##latest_consistent.sqlnew file mode 100644index 0000000000..467e670ff4--- /dev/null+++ b/backend/migrator/migration/3.4/0008##latest_consistent.sql@@ -0,0 +1,4 @@+ALTER TABLE slow_query DROP COLUMN instance_id;+ALTER TABLE slow_query DROP COLUMN database_id;+ALTER TABLE anomaly DROP COLUMN instance_id;+ALTER TABLE worksheet DROP COLUMN IF EXISTS database_id;\ No newline at end of filediff --git a/backend/migrator/migration/LATEST.sql b/backend/migrator/migration/LATEST.sqlindex c4098ae2be..32cc712ae3 100644--- a/backend/migrator/migration/LATEST.sql+++ b/backend/migrator/migration/LATEST.sql@@ -518,7 +518,6 @@ CREATE TABLE worksheet (project TEXT NOT NULL REFERENCES project(resource_id),instance TEXT,db_name TEXT,- database_id INTEGER NULL REFERENCES db (id),name TEXT NOT NULL,statement TEXT NOT NULL,visibility TEXT NOT NULL,diff --git a/backend/migrator/migrator_test.go b/backend/migrator/migrator_test.goindex 2ea83f1d78..1802d91cdc 100644--- a/backend/migrator/migrator_test.go+++ b/backend/migrator/migrator_test.go@@ -212,5 +212,5 @@ func TestMigrationCompatibility(t *testing.T) {func TestGetCutoffVersion(t *testing.T) {releaseVersion, err := getProdCutoffVersion()require.NoError(t, err)- require.Equal(t, semver.MustParse("3.4.7"), releaseVersion)+ require.Equal(t, semver.MustParse("3.4.8"), releaseVersion)}