Add scaffolding for cron trigger support

This commit is contained in:
2023-04-08 14:42:23 -06:00
parent e1382e50ea
commit a9481fa9bc
4 changed files with 171 additions and 0 deletions
+10
View File
@@ -189,6 +189,16 @@ CREATE TABLE pipeline_refs (
FOREIGN KEY(pipeline_id)
REFERENCES pipelines(id)
);
CREATE TABLE crons (
id UUID PRIMARY KEY,
pipeline_id UUID NOT NULL,
cron TEXT NOT NULL,
CONSTRAINT fk_pipeline_id
FOREIGN KEY(pipeline_id)
REFERENCES pipelines(id)
);
`
_, err := conn.Exec(context.Background(), createTablesQuery)