-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4804616
commit 163d959
Showing
4 changed files
with
25 additions
and
4 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
21 changes: 21 additions & 0 deletions
21
prisma/migrations/20240124195410_added_cv_on_user/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,21 @@ | ||
/* | ||
Warnings: | ||
- The values [FAILED] on the enum `PaymentStatus` will be removed. If these variants are still used in the database, this will fail. | ||
- You are about to drop the column `ratingsAvg` on the `User` table. All the data in the column will be lost. | ||
*/ | ||
-- AlterEnum | ||
BEGIN; | ||
CREATE TYPE "PaymentStatus_new" AS ENUM ('PENDING', 'PAID', 'ACCEPTED'); | ||
ALTER TABLE "Payment" ALTER COLUMN "paymentStatus" DROP DEFAULT; | ||
ALTER TABLE "Payment" ALTER COLUMN "paymentStatus" TYPE "PaymentStatus_new" USING ("paymentStatus"::text::"PaymentStatus_new"); | ||
ALTER TYPE "PaymentStatus" RENAME TO "PaymentStatus_old"; | ||
ALTER TYPE "PaymentStatus_new" RENAME TO "PaymentStatus"; | ||
DROP TYPE "PaymentStatus_old"; | ||
ALTER TABLE "Payment" ALTER COLUMN "paymentStatus" SET DEFAULT 'PENDING'; | ||
COMMIT; | ||
|
||
-- AlterTable | ||
ALTER TABLE "User" DROP COLUMN "ratingsAvg", | ||
ADD COLUMN "cv" TEXT; |
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