Commit 2da7e387 authored by Leo Gordon's avatar Leo Gordon
Browse files

the actual schema change (log_message.worker_id DEFAULT NULL)

parent cf28a897
......@@ -485,7 +485,7 @@ CREATE TABLE worker (
CREATE TABLE log_message (
log_message_id INTEGER NOT NULL PRIMARY KEY AUTO_INCREMENT,
job_id INTEGER DEFAULT NULL,
worker_id INTEGER NOT NULL,
worker_id INTEGER DEFAULT NULL,
time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
retry INTEGER DEFAULT NULL,
status ENUM('UNKNOWN','SPECIALIZATION','COMPILATION','READY','PRE_CLEANUP','FETCH_INPUT','RUN','WRITE_OUTPUT','POST_CLEANUP','PASSED_ON') DEFAULT 'UNKNOWN',
......
......@@ -487,7 +487,7 @@ CREATE INDEX ON worker (analysis_id, status);
CREATE TABLE log_message (
log_message_id SERIAL PRIMARY KEY,
job_id INTEGER DEFAULT NULL,
worker_id INTEGER NOT NULL,
worker_id INTEGER DEFAULT NULL,
time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
retry INTEGER DEFAULT NULL,
status jw_status DEFAULT 'UNKNOWN',
......
......@@ -476,7 +476,7 @@ CREATE INDEX worker_analysis_id_status_idx ON worker (analysis_id, status
CREATE TABLE log_message (
log_message_id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
job_id INTEGER DEFAULT NULL,
worker_id INTEGER NOT NULL,
worker_id INTEGER DEFAULT NULL,
time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
retry INTEGER DEFAULT NULL,
status TEXT NOT NULL DEFAULT 'UNKNOWN', /* enum('UNKNOWN','SPECIALIZATION','COMPILATION','READY','PRE_CLEANUP','FETCH_INPUT','RUN','WRITE_OUTPUT','POST_CLEANUP','PASSED_ON') DEFAULT 'UNKNOWN' */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment