mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-24 03:18:26 +00:00
Implement storage routines for periodic scheduler
This commit is contained in:
@ -13,3 +13,6 @@ CREATE TABLE `periodic_task` (
|
||||
`nextrun` timestamp not null,
|
||||
`created` timestamp not null
|
||||
);
|
||||
|
||||
CREATE INDEX `periodic_task_nextrun_idx` ON `periodic_task`(`nextrun`);
|
||||
CREATE INDEX `periodic_task_worker_idx` ON `periodic_task`(`worker`);
|
||||
|
@ -8,6 +8,11 @@ CREATE TABLE "periodic_task" (
|
||||
"submitter" varchar(254) not null,
|
||||
"priority" int not null,
|
||||
"worker" varchar(254),
|
||||
"marked" timestamp,
|
||||
"timer" varchar(254) not null,
|
||||
"nextrun" timestamp not null
|
||||
"nextrun" timestamp not null,
|
||||
"created" timestamp not null
|
||||
);
|
||||
|
||||
CREATE INDEX "periodic_task_nextrun_idx" ON "periodic_task"("nextrun");
|
||||
CREATE INDEX "periodic_task_worker_idx" ON "periodic_task"("worker");
|
||||
|
Reference in New Issue
Block a user