From ab2d07cd184eda9f0f4007e32577fe101b4a891a Mon Sep 17 00:00:00 2001 From: Emmy D'Anello Date: Sat, 7 Dec 2024 21:17:53 +0100 Subject: [PATCH] =?UTF-8?q?Stockage=20du=20fuseau=20horaire=20dans=20la=20?= =?UTF-8?q?base=20de=20donn=C3=A9es?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../20241207201534_timezones/migration.sql | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 server/prisma/migrations/20241207201534_timezones/migration.sql diff --git a/server/prisma/migrations/20241207201534_timezones/migration.sql b/server/prisma/migrations/20241207201534_timezones/migration.sql new file mode 100644 index 0000000..a94c24b --- /dev/null +++ b/server/prisma/migrations/20241207201534_timezones/migration.sql @@ -0,0 +1,12 @@ +-- AlterTable +ALTER TABLE "ChallengeAction" ALTER COLUMN "end" SET DATA TYPE TIMESTAMPTZ(3), +ALTER COLUMN "penaltyEnd" SET DATA TYPE TIMESTAMPTZ(3), +ALTER COLUMN "penaltyStart" SET DATA TYPE TIMESTAMPTZ(3), +ALTER COLUMN "start" SET DATA TYPE TIMESTAMPTZ(3); + +-- AlterTable +ALTER TABLE "Geolocation" ALTER COLUMN "timestamp" SET DATA TYPE TIMESTAMPTZ(3); + +-- AlterTable +ALTER TABLE "TrainTrip" ALTER COLUMN "departureTime" SET DATA TYPE TIMESTAMPTZ(3), +ALTER COLUMN "arrivalTime" SET DATA TYPE TIMESTAMPTZ(3);