mirror of
https://github.com/penpot/penpot.git
synced 2025-08-04 02:28:26 +02:00
🔥 Remove old emails tables.
This commit is contained in:
parent
3433aa0c5b
commit
170d815620
3 changed files with 3 additions and 32 deletions
21
backend/resources/migrations/0004.tasks.sql
Normal file
21
backend/resources/migrations/0004.tasks.sql
Normal file
|
@ -0,0 +1,21 @@
|
|||
CREATE TABLE IF NOT EXISTS tasks (
|
||||
id uuid PRIMARY KEY DEFAULT uuid_generate_v4(),
|
||||
|
||||
queue text NOT NULL,
|
||||
|
||||
created_at timestamptz NOT NULL DEFAULT clock_timestamp(),
|
||||
modified_at timestamptz NOT NULL DEFAULT clock_timestamp(),
|
||||
completed_at timestamptz NULL DEFAULT NULL,
|
||||
scheduled_at timestamptz NOT NULL,
|
||||
|
||||
name text NOT NULL,
|
||||
props bytea NOT NULL,
|
||||
|
||||
error_text text NULL DEFAULT NULL,
|
||||
|
||||
retry_num smallint NOT NULL DEFAULT 0,
|
||||
status text NOT NULL DEFAULT 'new'
|
||||
);
|
||||
|
||||
CREATE INDEX tasks__scheduled_at__idx
|
||||
ON tasks (scheduled_at, queue);
|
Loading…
Add table
Add a link
Reference in a new issue