...
This commit is contained in:
parent
159eed548c
commit
c59ea1de2b
1 changed files with 11 additions and 0 deletions
|
|
@ -999,12 +999,23 @@ CREATE INDEX scheduler_task_runs_host ON scheduler_task_runs(host_id);
|
|||
CREATE INDEX scheduler_task_runs_state ON scheduler_task_runs(state);
|
||||
CREATE INDEX scheduler_task_runs_create_time ON scheduler_task_runs(create_time);
|
||||
|
||||
|
||||
CREATE TABLE scheduler_host_data (
|
||||
host_id INTEGER REFERENCES host (id) PRIMARY KEY,
|
||||
data JSONB,
|
||||
) WITHOUT OIDS;
|
||||
|
||||
|
||||
CREATE TABLE scheduler_map (
|
||||
id SERIAL NOT NULL PRIMARY KEY,
|
||||
task_id INTEGER REFERENCES task (id) NOT NULL,
|
||||
host_id INTEGER REFERENCES host (id) NOT NULL,
|
||||
runnable BOOLEAN NOT NULL,
|
||||
refused BOOLEAN NOT NULL,
|
||||
check_time TIMESTAMPTZ NOT NULL DEFAULT NOW()
|
||||
) WITHOUT OIDS;
|
||||
|
||||
|
||||
CREATE TABLE scheduler_log_messages (
|
||||
id SERIAL NOT NULL PRIMARY KEY,
|
||||
task_id INTEGER REFERENCES task (id),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue