From a31bd84eaae8f9b79922593a85921260e67ed427 Mon Sep 17 00:00:00 2001 From: Samuel Lorch Date: Thu, 9 May 2024 04:46:17 +0200 Subject: [PATCH] Add data and log task columns --- migrations/000004_create_task_table.up.sql | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/migrations/000004_create_task_table.up.sql b/migrations/000004_create_task_table.up.sql index 25e4e69..54f1a77 100644 --- a/migrations/000004_create_task_table.up.sql +++ b/migrations/000004_create_task_table.up.sql @@ -3,6 +3,8 @@ CREATE TABLE IF NOT EXISTS tasks( id serial PRIMARY KEY, worker_id uuid REFERENCES workers(id), file_id integer REFERENCES files(id) NOT NULL, + type smallint NOT NULL, status smallint NOT NULL, - type smallint NOT NULL + data JSONB, + log text[] ); \ No newline at end of file