From 5da1b03557f6c5bb721cbb954eb0509a26413bd9 Mon Sep 17 00:00:00 2001 From: Arne Tarara Date: Wed, 26 Jul 2023 12:16:37 +0200 Subject: [PATCH] commit_timestamp must be time stamp with time zone --- docker/structure.sql | 2 +- migrations/2023_07_22_commit_timestamp.sql | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/structure.sql b/docker/structure.sql index d3576d553..8069393d7 100644 --- a/docker/structure.sql +++ b/docker/structure.sql @@ -9,7 +9,7 @@ CREATE TABLE projects ( uri text, branch text, commit_hash text, - commit_timestamp timestamp, + commit_timestamp timestamp with time zone, email text, categories int[], usage_scenario json, diff --git a/migrations/2023_07_22_commit_timestamp.sql b/migrations/2023_07_22_commit_timestamp.sql index 054a30844..d9d29b2fa 100644 --- a/migrations/2023_07_22_commit_timestamp.sql +++ b/migrations/2023_07_22_commit_timestamp.sql @@ -1 +1 @@ -ALTER TABLE "projects" ADD COLUMN "commit_timestamp" text; +ALTER TABLE "projects" ADD COLUMN "commit_timestamp" timestamp with time zone;