mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-27 22:56:45 -04:00
Fixed: Failing database migration of metadata files without extensions
This commit is contained in:
@@ -33,6 +33,9 @@ namespace NzbDrone.Core.Datastore.Migration
|
||||
.AddColumn("Added").AsDateTime().Nullable()
|
||||
.AddColumn("Extension").AsString().Nullable();
|
||||
|
||||
// Remove Metadata files that don't have an extension
|
||||
Execute.Sql("DELETE FROM MetadataFiles WHERE RelativePath NOT LIKE '%.%'");
|
||||
|
||||
// Set Extension using the extension from RelativePath
|
||||
Execute.WithConnection(SetMetadataFileExtension);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user