Skip to content

Commit

Permalink
Restoring the Microcluster Schema Migration History (#689)
Browse files Browse the repository at this point in the history
  • Loading branch information
louiseschmidtgen authored Sep 26, 2024
1 parent a2c00fb commit c74b9f5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/k8s/pkg/k8sd/database/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +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("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 c74b9f5

Please sign in to comment.