Commit 3bd9b18b authored by tidusjar's avatar tidusjar

Fixed the startup error

parent 58cc49d6
......@@ -14,13 +14,9 @@ namespace Ombi.Store.Context.Sqlite
_created = true;
Upgrade();
Database.SetCommandTimeout(60);
try
{
Database.Migrate();
}
catch (SqliteException e) when (e.Message.Equals("duplicate column name: RequestId"))
{
}
Database.Migrate();
}
......
......@@ -8,10 +8,10 @@ namespace Ombi.Store.Migrations.ExternalSqlite
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<int>(
name: "RequestId",
table: "PlexServerContent",
nullable: true);
//migrationBuilder.AddColumn<int>(
// name: "RequestId",
// table: "PlexServerContent",
// nullable: true);
}
protected override void Down(MigrationBuilder migrationBuilder)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment