mirror of
https://github.com/Readarr/Readarr
synced 2026-05-09 05:21:41 +02: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("Label").AsString().NotNullable()
|
||||||
.WithColumn("Filters").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");
|
Delete.Index().OnTable("History").OnColumn("BookId");
|
||||||
Create.Index().OnTable("History").OnColumn("BookId").Ascending()
|
Create.Index().OnTable("History").OnColumn("BookId").Ascending()
|
||||||
.OnColumn("Date").Descending();
|
.OnColumn("Date").Descending();
|
||||||
|
|
|
||||||
|
|
@ -8,9 +8,6 @@ public class FixIndexes : NzbDroneMigrationBase
|
||||||
{
|
{
|
||||||
protected override void MainDbUpgrade()
|
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");
|
Create.Index().OnTable("Editions").OnColumn("BookId");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue