Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added migration status to video metadata #747

Merged
merged 1 commit into from
Jun 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -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';
8 changes: 8 additions & 0 deletions prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -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])
}
Expand Down Expand Up @@ -278,3 +280,9 @@ enum CommentType {
INTRO
DEFAULT
}
enum MigrationStatus {
NOT_MIGRATED
IN_PROGRESS
MIGRATED
MIGRATION_ERROR
}
10 changes: 5 additions & 5 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
}
Loading