diff --git a/prisma/migrations/20240601123949_added_migration_status/migration.sql b/prisma/migrations/20240601123949_added_migration_status/migration.sql new file mode 100644 index 000000000..6ccfc2a07 --- /dev/null +++ b/prisma/migrations/20240601123949_added_migration_status/migration.sql @@ -0,0 +1,6 @@ +-- CreateEnum +CREATE TYPE "MigrationStatus" AS ENUM ('NOT_MIGRATED', 'IN_PROGRESS', 'MIGRATED', 'MIGRATION_ERROR'); + +-- AlterTable +ALTER TABLE "VideoMetadata" ADD COLUMN "migration_pickup_time" TIMESTAMP(3), +ADD COLUMN "migration_status" "MigrationStatus" NOT NULL DEFAULT 'NOT_MIGRATED'; diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 39874f139..6b8828164 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -116,6 +116,8 @@ model VideoMetadata { slides String? // link to slides thumbnail_mosiac_url String? duration Int? + migration_status MigrationStatus @default(NOT_MIGRATED) + migration_pickup_time DateTime? @@unique([contentId]) } @@ -278,3 +280,9 @@ enum CommentType { INTRO DEFAULT } +enum MigrationStatus { + NOT_MIGRATED + IN_PROGRESS + MIGRATED + MIGRATION_ERROR +} diff --git a/tsconfig.json b/tsconfig.json index cec286f06..1f308869a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -16,14 +16,14 @@ "incremental": true, "plugins": [ { - "name": "next", - }, + "name": "next" + } ], "paths": { "@/*": ["./src/*"], - "@public/*": ["./public/*"], - }, + "@public/*": ["./public/*"] + } }, "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], - "exclude": ["node_modules"], + "exclude": ["node_modules"] }