-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(Database): use re-generate migration to match db values
- Loading branch information
1 parent
5e4c55b
commit 57fc58e
Showing
2 changed files
with
103 additions
and
34 deletions.
There are no files selected for viewing
69 changes: 69 additions & 0 deletions
69
prisma/migrations/20230809142748_change_values_to_match_sql/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 "Activity" ALTER COLUMN "createdAt" SET DEFAULT timezone('utc'::text, now()), | ||
ALTER COLUMN "updatedAt" SET DEFAULT timezone('utc'::text, now()); | ||
|
||
-- AlterTable | ||
ALTER TABLE "Comment" ALTER COLUMN "createdAt" SET DEFAULT timezone('utc'::text, now()), | ||
ALTER COLUMN "updatedAt" SET DEFAULT timezone('utc'::text, now()); | ||
|
||
-- AlterTable | ||
ALTER TABLE "Estimate" ALTER COLUMN "createdAt" SET DEFAULT timezone('utc'::text, now()), | ||
ALTER COLUMN "updatedAt" SET DEFAULT timezone('utc'::text, now()); | ||
|
||
-- AlterTable | ||
ALTER TABLE "EstimateToGoal" ALTER COLUMN "createdAt" SET DEFAULT timezone('utc'::text, now()); | ||
|
||
-- AlterTable | ||
ALTER TABLE "Filter" ALTER COLUMN "createdAt" SET DEFAULT timezone('utc'::text, now()), | ||
ALTER COLUMN "updatedAt" SET DEFAULT timezone('utc'::text, now()); | ||
|
||
-- AlterTable | ||
ALTER TABLE "Flow" ALTER COLUMN "createdAt" SET DEFAULT timezone('utc'::text, now()), | ||
ALTER COLUMN "updatedAt" SET DEFAULT timezone('utc'::text, now()); | ||
|
||
-- AlterTable | ||
ALTER TABLE "Ghost" ALTER COLUMN "createdAt" SET DEFAULT timezone('utc'::text, now()), | ||
ALTER COLUMN "updatedAt" SET DEFAULT timezone('utc'::text, now()); | ||
|
||
-- AlterTable | ||
ALTER TABLE "Goal" ALTER COLUMN "createdAt" SET DEFAULT timezone('utc'::text, now()), | ||
ALTER COLUMN "updatedAt" SET DEFAULT timezone('utc'::text, now()); | ||
|
||
-- AlterTable | ||
ALTER TABLE "GoalAchieveCriteria" ALTER COLUMN "createdAt" SET DEFAULT timezone('utc'::text, now()), | ||
ALTER COLUMN "updatedAt" SET DEFAULT timezone('utc'::text, now()); | ||
|
||
-- AlterTable | ||
ALTER TABLE "GoalHistory" ALTER COLUMN "createdAt" SET DEFAULT timezone('utc'::text, now()); | ||
|
||
-- AlterTable | ||
ALTER TABLE "Job" ALTER COLUMN "createdAt" SET DEFAULT timezone('utc'::text, now()), | ||
ALTER COLUMN "updatedAt" SET DEFAULT timezone('utc'::text, now()); | ||
|
||
-- AlterTable | ||
ALTER TABLE "Project" 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 "Release" ALTER COLUMN "createdAt" SET DEFAULT timezone('utc'::text, now()), | ||
ALTER COLUMN "updatedAt" SET DEFAULT timezone('utc'::text, now()); | ||
|
||
-- AlterTable | ||
ALTER TABLE "Settings" ALTER COLUMN "createdAt" SET DEFAULT timezone('utc'::text, now()), | ||
ALTER COLUMN "updatedAt" SET DEFAULT timezone('utc'::text, now()); | ||
|
||
-- AlterTable | ||
ALTER TABLE "State" 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()); |
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