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: add export_archive table (#11305)
boojackcfb7c043d01f
diff --git a/backend/migrator/migration/prod/2.15/0007##export_archive.sql b/backend/migrator/migration/prod/2.15/0007##export_archive.sqlnew file mode 100644index 0000000000..f5b70ab263--- /dev/null+++ b/backend/migrator/migration/prod/2.15/0007##export_archive.sql@@ -0,0 +1,6 @@+CREATE TABLE export_archive (+ id SERIAL PRIMARY KEY,+ created_ts BIGINT NOT NULL DEFAULT extract(epoch from now()),+ bytes BYTEA,+ payload JSONB NOT NULL DEFAULT '{}'+);\ No newline at end of filediff --git a/backend/migrator/migration/prod/LATEST.sql b/backend/migrator/migration/prod/LATEST.sqlindex 1f1ea57c1b..337bad7f9c 100644--- a/backend/migrator/migration/prod/LATEST.sql+++ b/backend/migrator/migration/prod/LATEST.sql@@ -1230,4 +1230,11 @@ CREATE TRIGGER update_branch_updated_tsBEFOREUPDATEON branch FOR EACH ROW-EXECUTE FUNCTION trigger_update_updated_ts();\ No newline at end of file+EXECUTE FUNCTION trigger_update_updated_ts();++CREATE TABLE export_archive (+ id SERIAL PRIMARY KEY,+ created_ts BIGINT NOT NULL DEFAULT extract(epoch from now()),+ bytes BYTEA,+ payload JSONB NOT NULL DEFAULT '{}'+);\ No newline at end of filediff --git a/backend/migrator/migrator_test.go b/backend/migrator/migrator_test.goindex c4bfac7d3a..42d4d21716 100644--- a/backend/migrator/migrator_test.go+++ b/backend/migrator/migrator_test.go@@ -230,5 +230,5 @@ func TestMigrationCompatibility(t *testing.T) {func TestGetCutoffVersion(t *testing.T) {releaseVersion, err := getProdCutoffVersion()require.NoError(t, err)- require.Equal(t, semver.MustParse("2.15.6"), releaseVersion)+ require.Equal(t, semver.MustParse("2.15.7"), releaseVersion)}