Skip to content

Commit

Permalink
Merge pull request #747 from nimit9/chore--migration-status-db-changes
Browse files Browse the repository at this point in the history
added migration status to video metadata
  • Loading branch information
hkirat authored Jun 1, 2024
2 parents 00af23b + 0be2f33 commit 0c251d2
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 5 deletions.
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"]
}

0 comments on commit 0c251d2

Please sign in to comment.