@crewx/sdk 0.9.0-rc.64 → 0.9.0-rc.66
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/config/models.generated.d.ts +2 -2
- package/dist/config/pricing.generated.d.ts +2 -2
- package/dist/esm/index.js +94 -87
- package/dist/esm/plugins/index.js +118 -111
- package/dist/esm/repository/index.js +141 -119
- package/dist/esm/testing/index.js +1 -1
- package/dist/index.browser.js +3 -3
- package/dist/index.js +95 -88
- package/dist/migrations/0016_fuzzy_hemingway.sql +14 -0
- package/dist/migrations/meta/0016_snapshot.json +2419 -0
- package/dist/migrations/meta/_journal.json +7 -0
- package/dist/plugins/index.js +118 -111
- package/dist/repository/db.d.ts +8 -0
- package/dist/repository/index.d.ts +7 -2
- package/dist/repository/index.js +141 -119
- package/dist/repository/task-log-migration.d.ts +74 -0
- package/dist/repository/task-log.repository.d.ts +44 -0
- package/dist/repository/task.repository.d.ts +6 -0
- package/dist/schema/index.d.ts +1 -0
- package/dist/schema/task-log-events.d.ts +119 -0
- package/dist/schema/tasks.d.ts +53 -0
- package/dist/testing/index.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
CREATE TABLE IF NOT EXISTS `task_log_events` (
|
|
2
|
+
`id` integer PRIMARY KEY NOT NULL,
|
|
3
|
+
`task_id` text NOT NULL,
|
|
4
|
+
`seq` integer NOT NULL,
|
|
5
|
+
`timestamp` text NOT NULL,
|
|
6
|
+
`level` text NOT NULL,
|
|
7
|
+
`message` text NOT NULL,
|
|
8
|
+
FOREIGN KEY (`task_id`) REFERENCES `tasks`(`id`) ON UPDATE no action ON DELETE cascade
|
|
9
|
+
);
|
|
10
|
+
--> statement-breakpoint
|
|
11
|
+
CREATE UNIQUE INDEX IF NOT EXISTS `task_log_events_task_seq_uq` ON `task_log_events` (`task_id`,`seq`);--> statement-breakpoint
|
|
12
|
+
ALTER TABLE `tasks` ADD `log_storage` text DEFAULT 'blob' NOT NULL CONSTRAINT "tasks_log_storage_ck" CHECK("tasks"."log_storage" IN ('blob', 'events'));--> statement-breakpoint
|
|
13
|
+
ALTER TABLE `tasks` ADD `last_log_seq` integer DEFAULT 0 NOT NULL;--> statement-breakpoint
|
|
14
|
+
ALTER TABLE `tasks` ADD `log_revision` integer DEFAULT 0 NOT NULL;
|