Skip to content

Commit ed30027

Browse files
authored
feat: automatic worktree suspension (#1231)
1 parent 98b7a73 commit ed30027

36 files changed

Lines changed: 2114 additions & 36 deletions
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
CREATE TABLE `suspensions` (
2+
`id` text PRIMARY KEY NOT NULL,
3+
`workspace_id` text NOT NULL,
4+
`branch_name` text,
5+
`checkpoint_id` text,
6+
`suspended_at` text NOT NULL,
7+
`reason` text NOT NULL,
8+
`created_at` text DEFAULT (CURRENT_TIMESTAMP) NOT NULL,
9+
`updated_at` text DEFAULT (CURRENT_TIMESTAMP) NOT NULL,
10+
FOREIGN KEY (`workspace_id`) REFERENCES `workspaces`(`id`) ON UPDATE no action ON DELETE cascade
11+
);
12+
--> statement-breakpoint
13+
CREATE UNIQUE INDEX `suspensions_workspaceId_unique` ON `suspensions` (`workspace_id`);

0 commit comments

Comments
 (0)