mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-19 12:59:39 -07:00
Fixes unique constraint violation for SQLite database.
This commit is contained in:
parent
46fb31cb98
commit
deb6881c33
3 changed files with 3 additions and 3 deletions
|
@ -24,7 +24,7 @@ namespace Ombi.Store.Context.Sqlite
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
Database.ExecuteSqlCommand(@"INSERT INTO __EFMigrationsHistory (MigrationId,ProductVersion)
|
Database.ExecuteSqlRaw(@"INSERT OR IGNORE INTO __EFMigrationsHistory (MigrationId,ProductVersion)
|
||||||
VALUES('20191103205133_Inital', '2.2.6-servicing-10079'); ");
|
VALUES('20191103205133_Inital', '2.2.6-servicing-10079'); ");
|
||||||
}
|
}
|
||||||
catch (Exception)
|
catch (Exception)
|
||||||
|
|
|
@ -22,7 +22,7 @@ namespace Ombi.Store.Context.Sqlite
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
Database.ExecuteSqlCommand(@"INSERT INTO __EFMigrationsHistory (MigrationId,ProductVersion)
|
Database.ExecuteSqlRaw(@"INSERT OR IGNORE INTO __EFMigrationsHistory (MigrationId,ProductVersion)
|
||||||
VALUES('20191102235658_Inital', '2.2.6-servicing-10079'); ");
|
VALUES('20191102235658_Inital', '2.2.6-servicing-10079'); ");
|
||||||
}
|
}
|
||||||
catch (Exception)
|
catch (Exception)
|
||||||
|
|
|
@ -20,7 +20,7 @@ namespace Ombi.Store.Context.Sqlite
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
Database.ExecuteSqlCommand(@"INSERT INTO __EFMigrationsHistory (MigrationId,ProductVersion)
|
Database.ExecuteSqlRaw(@"INSERT OR IGNORE INTO __EFMigrationsHistory (MigrationId,ProductVersion)
|
||||||
VALUES('20191103205204_Inital', '2.2.6-servicing-10079'); ");
|
VALUES('20191103205204_Inital', '2.2.6-servicing-10079'); ");
|
||||||
}
|
}
|
||||||
catch (Exception)
|
catch (Exception)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue