🗃️ db: modify video code column and update migration

This commit is contained in:
2026-02-20 22:57:07 +07:00
parent 7e5168f1fc
commit 1f6d07affd
5 changed files with 258 additions and 147 deletions

View File

@ -174,7 +174,7 @@ Table videos {
episodeId String [not null]
service video_services [not null]
serviceId String [not null]
code String [not null]
videoCode String [not null]
pendingUpload Boolean [not null, default: true]
uploader users [not null]
uploadedBy String [not null]
@ -183,7 +183,7 @@ Table videos {
updatedAt DateTime [default: `now()`, not null]
indexes {
(serviceId, code) [unique]
(serviceId, videoCode) [unique]
}
}