feat(db): add custom migration to backfill totalFrames and startTimecode

This commit is contained in:
yiling
2026-06-29 11:27:32 +08:00
parent bb65c5a0d3
commit 95f91cd4de
48 changed files with 12450 additions and 26333 deletions
@@ -101,7 +101,17 @@ describe('Transcode Workflow', () => {
mockActivities.getMediaInfoActivity.mockResolvedValue({
mimeType: 'video/mp4',
metadata: { originalWidth: 1920, originalHeight: 1080, duration: 10, frameRate: 30 },
metadata: {
originalWidth: 1920,
originalHeight: 1080,
duration: 10,
frameRate: 30,
totalFrames: 300,
startTimecode: '00:00:00:00',
bitRate: 1000,
hasAudio: false,
format: {},
},
videoTranscodes: [],
imageTranscodes: [],
})
@@ -181,7 +191,17 @@ describe('Transcode Workflow', () => {
mockActivities.getMediaInfoActivity.mockResolvedValue({
mimeType: 'image/jpeg',
metadata: { originalWidth: 1000, originalHeight: 1000 },
metadata: {
originalWidth: 1000,
originalHeight: 1000,
duration: 0,
frameRate: 0,
totalFrames: 0,
startTimecode: '00:00:00:00',
bitRate: 0,
hasAudio: false,
format: {},
},
videoTranscodes: [],
imageTranscodes: [],
})