Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package postgres

//go:generate pg-table-bindings-wrapper --type=storage.VulnerabilityRequest --search-category VULN_REQUEST --permission-checker permissionCheckerSingleton() --migration-seq 53 --migrate-from rocksdb
//go:generate pg-table-bindings-wrapper --type=storage.VulnerabilityRequest --search-category VULN_REQUEST --permission-checker permissionCheckerSingleton()
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package rocksdb

//go:generate rocksdb-bindings-wrapper --type=VulnerabilityRequest --bucket=vuln_req --migration-seq 53 --migrate-to vulnerability_requests
//go:generate rocksdb-bindings-wrapper --type=VulnerabilityRequest --bucket=vuln_req
9 changes: 9 additions & 0 deletions migrator/migrations/frozenschema/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Frozen Schemas
The schemas in Central are evolving. Migrations are created to upgrade Central
databases from one version to another. Data migrations are based on the schemas at
that particular release and should not evolve with Central.

We create a copy of schemas and freeze it here so that the migrations can use them to upgrade
legacy databases. All schemas are frozen for version
3.73 to support upgrade from RocksDB and BoltDb to Postgres. Note this is not mandatory for every release. In a more common scenario,
if we need to create one migration for one table, you can keep the frozen schema in the migration itself.
64 changes: 64 additions & 0 deletions migrator/migrations/frozenschema/v73/active_components.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

69 changes: 69 additions & 0 deletions migrator/migrations/frozenschema/v73/alerts.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

35 changes: 35 additions & 0 deletions migrator/migrations/frozenschema/v73/api_tokens.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

36 changes: 36 additions & 0 deletions migrator/migrations/frozenschema/v73/auth_providers.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

57 changes: 57 additions & 0 deletions migrator/migrations/frozenschema/v73/cluster_cve_edges.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

53 changes: 53 additions & 0 deletions migrator/migrations/frozenschema/v73/cluster_cves.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

53 changes: 53 additions & 0 deletions migrator/migrations/frozenschema/v73/cluster_health_statuses.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading