Skip to content

Commit b388f1c

Browse files
committed
refactor: split migration of task status updated
1 parent 9783115 commit b388f1c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

aggregation_mode/db/migrations/001_init.sql

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ CREATE TABLE tasks (
99
merkle_path BYTEA,
1010
status task_status DEFAULT 'pending',
1111
nonce BIGINT NOT NULL,
12-
inserted_at TIMESTAMPTZ NOT NULL DEFAULT now(),
13-
status_updated_at TIMESTAMPTZ DEFAULT now()
12+
inserted_at TIMESTAMPTZ NOT NULL DEFAULT now()
1413
);
1514

1615
CREATE TABLE payment_events (
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ALTER TABLE tasks add COLUMN status_updated_at TIMESTAMPTZ DEFAULT now();

0 commit comments

Comments
 (0)