diff --git a/apps/backend/prisma/migrations/20240326030257_add_mapping_to_is_rank_visible/migration.sql b/apps/backend/prisma/migrations/20240326030257_add_mapping_to_is_rank_visible/migration.sql new file mode 100644 index 0000000000..6511ba010e --- /dev/null +++ b/apps/backend/prisma/migrations/20240326030257_add_mapping_to_is_rank_visible/migration.sql @@ -0,0 +1,9 @@ +/* + Warnings: + + - You are about to drop the column `isRankVisible` on the `contest` table. All the data in the column will be lost. + +*/ +-- AlterTable +ALTER TABLE "contest" DROP COLUMN "isRankVisible", +ADD COLUMN "is_rank_visible" BOOLEAN NOT NULL DEFAULT true; diff --git a/apps/backend/prisma/schema.prisma b/apps/backend/prisma/schema.prisma index 4a2e10a28e..b96f9b6093 100644 --- a/apps/backend/prisma/schema.prisma +++ b/apps/backend/prisma/schema.prisma @@ -269,7 +269,7 @@ model Contest { startTime DateTime @map("start_time") endTime DateTime @map("end_time") isVisible Boolean @default(true) @map("is_visible") - isRankVisible Boolean @default(true) + isRankVisible Boolean @default(true) @map("is_rank_visible") createTime DateTime @default(now()) @map("create_time") updateTime DateTime @updatedAt @map("update_time")