diff --git a/internal/database/postgres_migrate.go b/internal/database/postgres_migrate.go index ec54a3a..00d267d 100644 --- a/internal/database/postgres_migrate.go +++ b/internal/database/postgres_migrate.go @@ -230,7 +230,7 @@ CREATE TABLE "release" filter TEXT, protocol TEXT, implementation TEXT, - timestamp TIMESTAMP DEFAULT CURRENT_TIMESTAMP, + timestamp TIMESTAMPTZ DEFAULT CURRENT_TIMESTAMP, info_url TEXT, download_url TEXT, group_id TEXT, @@ -862,5 +862,8 @@ ALTER TABLE filter `UPDATE irc_network SET server = 'irc.nebulance.io' WHERE server = 'irc.nebulance.cc'; +`, + `ALTER TABLE "release" + ALTER COLUMN timestamp TYPE timestamptz USING timestamp AT TIME ZONE 'UTC'; `, }