♻️ Remove legacy start column (#1113)

This commit is contained in:
Luke Vella 2024-05-18 17:32:49 +08:00 committed by GitHub
parent 14d0889a37
commit 533e347557
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 16 additions and 128 deletions

View file

@ -0,0 +1,8 @@
/*
Warnings:
- You are about to drop the column `start` on the `options` table. All the data in the column will be lost.
*/
-- AlterTable
ALTER TABLE "options" DROP COLUMN "start";

View file

@ -195,7 +195,6 @@ model Participant {
model Option {
id String @id @default(cuid())
start DateTime @db.Timestamp(0) // @deprecated - use startTime
startTime DateTime @db.Timestamp(0) @map("start_time")
duration Int @default(0) @map("duration_minutes")
pollId String @map("poll_id")