mirror of
https://github.com/Readarr/Readarr
synced 2026-01-01 13:13:23 +01:00
Fixed: Migrations running on newer versions of SQLite
This commit is contained in:
parent
4fb62c072a
commit
dd4a0121f2
2 changed files with 0 additions and 7 deletions
|
|
@ -327,10 +327,6 @@ protected override void MainDbUpgrade()
|
|||
.WithColumn("Label").AsString().NotNullable()
|
||||
.WithColumn("Filters").AsString().NotNullable();
|
||||
|
||||
IfDatabase("sqlite").Create.Index().OnTable("Books").OnColumn("AuthorId");
|
||||
IfDatabase("sqlite").Create.Index().OnTable("Books").OnColumn("AuthorId").Ascending()
|
||||
.OnColumn("ReleaseDate").Ascending();
|
||||
|
||||
Delete.Index().OnTable("History").OnColumn("BookId");
|
||||
Create.Index().OnTable("History").OnColumn("BookId").Ascending()
|
||||
.OnColumn("Date").Descending();
|
||||
|
|
|
|||
|
|
@ -8,9 +8,6 @@ public class FixIndexes : NzbDroneMigrationBase
|
|||
{
|
||||
protected override void MainDbUpgrade()
|
||||
{
|
||||
IfDatabase("sqlite").Delete.Index().OnTable("Books").OnColumn("AuthorId");
|
||||
IfDatabase("sqlite").Delete.Index().OnTable("Books").OnColumns("AuthorId", "ReleaseDate");
|
||||
|
||||
Create.Index().OnTable("Editions").OnColumn("BookId");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue