@crewx/sdk 0.8.6-rc.1 → 0.8.6-rc.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/index.js +30 -49
- package/dist/esm/plugins/index.js +17 -21
- package/dist/esm/repository/index.js +15 -19
- package/dist/index.js +31 -50
- package/dist/migrations/0002_normalize_task_names.sql +13 -0
- package/dist/migrations/meta/0002_snapshot.json +1077 -0
- package/dist/migrations/meta/_journal.json +7 -0
- package/dist/plugins/index.js +17 -21
- package/dist/repository/index.js +15 -19
- package/dist/repository/task.repository.d.ts +0 -3
- package/dist/schema/tasks.d.ts +0 -38
- package/dist/types/index.d.ts +2 -0
- package/package.json +21 -21
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
-- Backfill: workspace_id가 NULL이고 workspace_name만 있는 행을 workspaces 테이블에서 매칭
|
|
2
|
+
UPDATE tasks
|
|
3
|
+
SET workspace_id = (
|
|
4
|
+
SELECT w.id FROM workspaces w
|
|
5
|
+
WHERE w.name = tasks.workspace_name
|
|
6
|
+
LIMIT 1
|
|
7
|
+
)
|
|
8
|
+
WHERE workspace_id IS NULL
|
|
9
|
+
AND workspace_name IS NOT NULL
|
|
10
|
+
AND EXISTS (SELECT 1 FROM workspaces w WHERE w.name = tasks.workspace_name);
|
|
11
|
+
--> statement-breakpoint
|
|
12
|
+
ALTER TABLE tasks DROP COLUMN workspace_name;--> statement-breakpoint
|
|
13
|
+
ALTER TABLE tasks DROP COLUMN project_name;
|