-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(db schema): change timestamp db values to match db values
- Loading branch information
1 parent
2910d72
commit d1cca0e
Showing
3 changed files
with
101 additions
and
101 deletions.
There are no files selected for viewing
69 changes: 0 additions & 69 deletions
69
prisma/migrations/20230808153410_utc_timestamps/migration.sql
This file was deleted.
Oops, something went wrong.
69 changes: 69 additions & 0 deletions
69
prisma/migrations/20231101213836_utc_timestamps/migration.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
-- AlterTable | ||
ALTER TABLE "Account" ALTER COLUMN "createdAt" SET DEFAULT timezone('utc'::text, now()), | ||
ALTER COLUMN "updatedAt" SET DEFAULT timezone('utc'::text, now()); | ||
|
||
-- AlterTable | ||
ALTER TABLE "AnalyticsEvent" ALTER COLUMN "timestamp" SET DEFAULT timezone('utc'::text, now()); | ||
|
||
-- AlterTable | ||
ALTER TABLE "Attach" ALTER COLUMN "createdAt" SET DEFAULT timezone('utc'::text, now()); | ||
|
||
-- AlterTable | ||
ALTER TABLE "CalendarEvent" ALTER COLUMN "createdAt" SET DEFAULT timezone('utc'::text, now()); | ||
|
||
-- AlterTable | ||
ALTER TABLE "CalendarEventCancellation" ALTER COLUMN "createdAt" SET DEFAULT timezone('utc'::text, now()); | ||
|
||
-- AlterTable | ||
ALTER TABLE "CalendarEventDetails" ALTER COLUMN "createdAt" SET DEFAULT timezone('utc'::text, now()); | ||
|
||
-- AlterTable | ||
ALTER TABLE "CalendarEventException" ALTER COLUMN "createdAt" SET DEFAULT timezone('utc'::text, now()); | ||
|
||
-- AlterTable | ||
ALTER TABLE "Candidate" ALTER COLUMN "createdAt" SET DEFAULT timezone('utc'::text, now()), | ||
ALTER COLUMN "updatedAt" SET DEFAULT timezone('utc'::text, now()); | ||
|
||
-- AlterTable | ||
ALTER TABLE "Interview" ALTER COLUMN "createdAt" SET DEFAULT timezone('utc'::text, now()), | ||
ALTER COLUMN "updatedAt" SET DEFAULT timezone('utc'::text, now()); | ||
|
||
-- AlterTable | ||
ALTER TABLE "InterviewEvent" ALTER COLUMN "createdAt" SET DEFAULT timezone('utc'::text, now()), | ||
ALTER COLUMN "updatedAt" SET DEFAULT timezone('utc'::text, now()); | ||
|
||
-- AlterTable | ||
ALTER TABLE "Problem" ALTER COLUMN "createdAt" SET DEFAULT timezone('utc'::text, now()), | ||
ALTER COLUMN "updatedAt" SET DEFAULT timezone('utc'::text, now()); | ||
|
||
-- AlterTable | ||
ALTER TABLE "Reaction" ALTER COLUMN "createdAt" SET DEFAULT timezone('utc'::text, now()), | ||
ALTER COLUMN "updatedAt" SET DEFAULT timezone('utc'::text, now()); | ||
|
||
-- AlterTable | ||
ALTER TABLE "Section" ALTER COLUMN "createdAt" SET DEFAULT timezone('utc'::text, now()), | ||
ALTER COLUMN "updatedAt" SET DEFAULT timezone('utc'::text, now()); | ||
|
||
-- AlterTable | ||
ALTER TABLE "SectionType" ALTER COLUMN "createdAt" SET DEFAULT timezone('utc'::text, now()), | ||
ALTER COLUMN "updatedAt" SET DEFAULT timezone('utc'::text, now()); | ||
|
||
-- AlterTable | ||
ALTER TABLE "Session" ALTER COLUMN "createdAt" SET DEFAULT timezone('utc'::text, now()), | ||
ALTER COLUMN "updatedAt" SET DEFAULT timezone('utc'::text, now()); | ||
|
||
-- AlterTable | ||
ALTER TABLE "Solution" ALTER COLUMN "createdAt" SET DEFAULT timezone('utc'::text, now()), | ||
ALTER COLUMN "updatedAt" SET DEFAULT timezone('utc'::text, now()); | ||
|
||
-- AlterTable | ||
ALTER TABLE "Tag" ALTER COLUMN "createdAt" SET DEFAULT timezone('utc'::text, now()), | ||
ALTER COLUMN "updatedAt" SET DEFAULT timezone('utc'::text, now()); | ||
|
||
-- AlterTable | ||
ALTER TABLE "User" ALTER COLUMN "createdAt" SET DEFAULT timezone('utc'::text, now()), | ||
ALTER COLUMN "updatedAt" SET DEFAULT timezone('utc'::text, now()); | ||
|
||
-- AlterTable | ||
ALTER TABLE "VerificationRequest" ALTER COLUMN "createdAt" SET DEFAULT timezone('utc'::text, now()), | ||
ALTER COLUMN "updatedAt" SET DEFAULT timezone('utc'::text, now()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters