feat: migrate task jobs to workflow notifications + timeline

This commit is contained in:
2026-03-02 14:29:31 -05:00
parent 36c4ed2ee2
commit d81a681905
33 changed files with 2437 additions and 292 deletions

View File

@@ -0,0 +1,11 @@
ALTER TABLE `task_run` ADD `stage` text NOT NULL DEFAULT 'queued';
--> statement-breakpoint
ALTER TABLE `task_run` ADD `stage_detail` text;
--> statement-breakpoint
ALTER TABLE `task_run` ADD `resource_key` text;
--> statement-breakpoint
ALTER TABLE `task_run` ADD `notification_read_at` text;
--> statement-breakpoint
ALTER TABLE `task_run` ADD `notification_silenced_at` text;
--> statement-breakpoint
CREATE INDEX `task_user_resource_status_idx` ON `task_run` (`user_id`,`task_type`,`resource_key`,`status`,`created_at`);