Skip to content

Commit 7ba695e

Browse files
committed
Fix migs
1 parent 544b33d commit 7ba695e

7 files changed

Lines changed: 84 additions & 31673 deletions

File tree

packages/db/migrations/0205_funny_sleepwalker.sql

Lines changed: 0 additions & 1 deletion
This file was deleted.

packages/db/migrations/0207_slow_prodigy.sql renamed to packages/db/migrations/0205_smooth_sentinel.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@ CREATE TABLE "mothership_settings" (
77
"updated_at" timestamp DEFAULT now() NOT NULL
88
);
99
--> statement-breakpoint
10+
ALTER TABLE "settings" ADD COLUMN "mothership_environment" text DEFAULT 'default' NOT NULL;--> statement-breakpoint
1011
ALTER TABLE "mothership_settings" ADD CONSTRAINT "mothership_settings_workspace_id_workspace_id_fk" FOREIGN KEY ("workspace_id") REFERENCES "public"."workspace"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
1112
CREATE INDEX "mothership_settings_workspace_id_idx" ON "mothership_settings" USING btree ("workspace_id");

packages/db/migrations/0206_amazing_maximus.sql

Lines changed: 0 additions & 3 deletions
This file was deleted.

packages/db/migrations/meta/0205_snapshot.json

Lines changed: 81 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"id": "1c89700e-fc3d-4dc3-864d-963edc5b7158",
2+
"id": "5df2c04d-1f08-4c0b-9763-b79666c03406",
33
"prevId": "c261a35e-0a35-452b-8f72-995fc488b108",
44
"version": "7",
55
"dialect": "postgresql",
@@ -8042,6 +8042,86 @@
80428042
"checkConstraints": {},
80438043
"isRLSEnabled": false
80448044
},
8045+
"public.mothership_settings": {
8046+
"name": "mothership_settings",
8047+
"schema": "",
8048+
"columns": {
8049+
"workspace_id": {
8050+
"name": "workspace_id",
8051+
"type": "text",
8052+
"primaryKey": true,
8053+
"notNull": true
8054+
},
8055+
"mcp_tool_refs": {
8056+
"name": "mcp_tool_refs",
8057+
"type": "jsonb",
8058+
"primaryKey": false,
8059+
"notNull": true,
8060+
"default": "'[]'::jsonb"
8061+
},
8062+
"custom_tool_refs": {
8063+
"name": "custom_tool_refs",
8064+
"type": "jsonb",
8065+
"primaryKey": false,
8066+
"notNull": true,
8067+
"default": "'[]'::jsonb"
8068+
},
8069+
"skill_refs": {
8070+
"name": "skill_refs",
8071+
"type": "jsonb",
8072+
"primaryKey": false,
8073+
"notNull": true,
8074+
"default": "'[]'::jsonb"
8075+
},
8076+
"created_at": {
8077+
"name": "created_at",
8078+
"type": "timestamp",
8079+
"primaryKey": false,
8080+
"notNull": true,
8081+
"default": "now()"
8082+
},
8083+
"updated_at": {
8084+
"name": "updated_at",
8085+
"type": "timestamp",
8086+
"primaryKey": false,
8087+
"notNull": true,
8088+
"default": "now()"
8089+
}
8090+
},
8091+
"indexes": {
8092+
"mothership_settings_workspace_id_idx": {
8093+
"name": "mothership_settings_workspace_id_idx",
8094+
"columns": [
8095+
{
8096+
"expression": "workspace_id",
8097+
"isExpression": false,
8098+
"asc": true,
8099+
"nulls": "last"
8100+
}
8101+
],
8102+
"isUnique": false,
8103+
"concurrently": false,
8104+
"method": "btree",
8105+
"with": {}
8106+
}
8107+
},
8108+
"foreignKeys": {
8109+
"mothership_settings_workspace_id_workspace_id_fk": {
8110+
"name": "mothership_settings_workspace_id_workspace_id_fk",
8111+
"tableFrom": "mothership_settings",
8112+
"tableTo": "workspace",
8113+
"columnsFrom": ["workspace_id"],
8114+
"columnsTo": ["id"],
8115+
"onDelete": "cascade",
8116+
"onUpdate": "no action"
8117+
}
8118+
},
8119+
"compositePrimaryKeys": {},
8120+
"uniqueConstraints": {},
8121+
"policies": {},
8122+
"checkConstraints": {},
8123+
"isRLSEnabled": false
8124+
},
80458125
"public.oauth_access_token": {
80468126
"name": "oauth_access_token",
80478127
"schema": "",

0 commit comments

Comments
 (0)