mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2024-12-27 00:59:14 +01:00
Update dbMigration mappings
This commit is contained in:
parent
9b7aacf3ea
commit
1b97582975
@ -174,17 +174,17 @@ function migratePodcast(oldLibraryItem, LibraryItem) {
|
|||||||
const PodcastEpisode = {
|
const PodcastEpisode = {
|
||||||
id: uuidv4(),
|
id: uuidv4(),
|
||||||
index: oldEpisode.index,
|
index: oldEpisode.index,
|
||||||
season: oldEpisode.season,
|
season: oldEpisode.season || null,
|
||||||
episode: oldEpisode.episode,
|
episode: oldEpisode.episode || null,
|
||||||
episodeType: oldEpisode.episodeType,
|
episodeType: oldEpisode.episodeType || null,
|
||||||
title: oldEpisode.title,
|
title: oldEpisode.title,
|
||||||
subtitle: oldEpisode.subtitle,
|
subtitle: oldEpisode.subtitle || null,
|
||||||
description: oldEpisode.description,
|
description: oldEpisode.description || null,
|
||||||
pubDate: oldEpisode.pubDate,
|
pubDate: oldEpisode.pubDate || null,
|
||||||
enclosureURL: oldEpisode.enclosure?.url || null,
|
enclosureURL: oldEpisode.enclosure?.url || null,
|
||||||
enclosureSize: oldEpisode.enclosure?.length || null,
|
enclosureSize: oldEpisode.enclosure?.length || null,
|
||||||
enclosureType: oldEpisode.enclosure?.type || null,
|
enclosureType: oldEpisode.enclosure?.type || null,
|
||||||
publishedAt: oldEpisode.publishedAt,
|
publishedAt: oldEpisode.publishedAt || null,
|
||||||
createdAt: oldEpisode.addedAt,
|
createdAt: oldEpisode.addedAt,
|
||||||
updatedAt: oldEpisode.updatedAt,
|
updatedAt: oldEpisode.updatedAt,
|
||||||
podcastId: Podcast.id,
|
podcastId: Podcast.id,
|
||||||
|
Loading…
Reference in New Issue
Block a user