Skip to content

Commit

Permalink
[Backport release-1.31] Microcluster Migration History Restoration (#700
Browse files Browse the repository at this point in the history
)

* Correct microcluster schema migration order (#676)
* Restoring the Microcluster Schema Migration History (#689)
  • Loading branch information
louiseschmidtgen committed Sep 26, 2024
1 parent 1c7813e commit 36501b3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/k8s/pkg/k8sd/database/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ var (
SchemaExtensions = []schema.Update{
schemaApplyMigration("kubernetes-auth-tokens", "000-create.sql"),
schemaApplyMigration("cluster-configs", "000-create.sql"),

schemaApplyMigration("worker-nodes", "000-create.sql"),
schemaApplyMigration("worker-tokens", "000-create.sql"),
schemaApplyMigration("worker-tokens", "001-add-expiry.sql"),

schemaApplyMigration("feature-status", "000-feature-status.sql"),
schemaApplyMigration("worker-tokens", "001-add-expiry.sql"),
schemaApplyMigration("worker-nodes", "001-delete.sql"),
}

//go:embed sql/migrations
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ CREATE TABLE worker_nodes (
id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
name TEXT NOT NULL,
UNIQUE(name)
);
)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DROP TABLE IF EXISTS worker_nodes

0 comments on commit 36501b3

Please sign in to comment.