Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

feat: added not_before_ts to TABLE task (#150)

Luke Zhou8cdd26f704c7
diff --git a/store/migration/10001__init_schema.sql b/store/migration/10001__init_schema.sql
index 33f210e5e3..ed13ecf249 100644
--- a/store/migration/10001__init_schema.sql
+++ b/store/migration/10001__init_schema.sql
@@ -840,13 +840,16 @@ CREATE TABLE task (
)
),
`type` TEXT NOT NULL CHECK (`type` LIKE 'bb.task.%'),
- payload TEXT NOT NULL DEFAULT ''
+ payload TEXT NOT NULL DEFAULT '',
+ `not_before_ts` BIGINT NOT NULL DEFAULT 0
);
CREATE INDEX idx_task_pipeline_id_stage_id ON task(pipeline_id, stage_id);
CREATE INDEX idx_task_status ON task(`status`);
+CREATE INDEX idx_task_not_before_ts ON task(not_before_ts);
+
INSERT INTO
sqlite_sequence (name, seq)
VALUES