Skip to content

Commit 34e0965

Browse files
api: add inserted_at to trees table (#49)
Co-authored-by: Ryan Smith <[email protected]>
1 parent 6274b8e commit 34e0965

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

api/migrations/migrations.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,11 @@ var Migrations = []migrate.Migration{
6767
CREATE INDEX on trees USING gin(proofs jsonb_path_ops);
6868
`,
6969
},
70+
{
71+
Name: "2022-08-22.1.add-inserted-at.sql",
72+
SQL: `
73+
ALTER TABLE trees
74+
ADD COLUMN "inserted_at" timestamptz NOT NULL DEFAULT now();
75+
`,
76+
},
7077
}

0 commit comments

Comments
 (0)