Skip to content

Commit

Permalink
added cv field on user
Browse files Browse the repository at this point in the history
  • Loading branch information
richard483 committed Jan 24, 2024
1 parent 4804616 commit 163d959
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "backend-8tech",
"version": "4.2.4",
"version": "4.2.5",
"description": "",
"author": "8tech",
"private": true,
Expand Down
21 changes: 21 additions & 0 deletions prisma/migrations/20240124195410_added_cv_on_user/migration.sql
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;
2 changes: 1 addition & 1 deletion prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ model User {
previousWorkplaceId String[]
previousWorkplaceCount Int?
ratings Rating[]
ratingsAvg Float?
cv String?
companyId String?
portfolio String[] @map("portfolio")
profilePicture String?
Expand Down

0 comments on commit 163d959

Please sign in to comment.