Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
migration: drop sheet table (#19205)
Danny Xue1247175dc45
diff --git a/backend/migrator/migration/3.15/0007##drop_sheet_table.sql b/backend/migrator/migration/3.15/0007##drop_sheet_table.sqlnew file mode 100644index 0000000000..e56603f2de--- /dev/null+++ b/backend/migrator/migration/3.15/0007##drop_sheet_table.sql@@ -0,0 +1 @@+DROP TABLE sheet;diff --git a/backend/migrator/migration/LATEST.sql b/backend/migrator/migration/LATEST.sqlindex a28589f379..802d0c05d6 100644--- a/backend/migrator/migration/LATEST.sql+++ b/backend/migrator/migration/LATEST.sql@@ -183,22 +183,6 @@ CREATE TABLE sheet_blob (content text NOT NULL);--- sheet table stores general statements.-CREATE TABLE sheet (- id serial PRIMARY KEY,- creator text NOT NULL REFERENCES principal(email) ON UPDATE CASCADE,- created_at timestamptz NOT NULL DEFAULT now(),- project text NOT NULL REFERENCES project(resource_id),- name text NOT NULL,- sha256 bytea NOT NULL,- -- Stored as SheetPayload (proto/store/store/sheet.proto)- payload jsonb NOT NULL DEFAULT '{}'-);--CREATE INDEX idx_sheet_project ON sheet(project);--ALTER SEQUENCE sheet_id_seq RESTART WITH 101;--- plan table stores the plan for a projectCREATE TABLE plan (id bigserial PRIMARY KEY,diff --git a/backend/migrator/migrator_test.go b/backend/migrator/migrator_test.goindex a0325e0edb..a2c69161f8 100644--- a/backend/migrator/migrator_test.go+++ b/backend/migrator/migrator_test.go@@ -12,8 +12,8 @@ import (func TestLatestVersion(t *testing.T) {files, err := getSortedVersionedFiles()require.NoError(t, err)- require.Equal(t, semver.MustParse("3.15.6"), *files[len(files)-1].version)- require.Equal(t, "migration/3.15/0006##remove_system_bot.sql", files[len(files)-1].path)+ require.Equal(t, semver.MustParse("3.15.7"), *files[len(files)-1].version)+ require.Equal(t, "migration/3.15/0007##drop_sheet_table.sql", files[len(files)-1].path)}func TestVersionUnique(t *testing.T) {