Merge pull request #3797 from bernarden/feature/cleanup-dev-startup-output

Cleanup console output during startup.
This commit is contained in:
Jamie 2020-10-07 08:10:32 +01:00 committed by GitHub
commit 799061acfe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 3 deletions

View file

@ -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)

View file

@ -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)

View file

@ -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)

View file

@ -96,6 +96,10 @@ namespace Ombi
urlValue = url.Value; urlValue = url.Value;
} }
else if (string.IsNullOrEmpty(urlValue))
{
urlValue = host;
}
if (dbBaseUrl == null) if (dbBaseUrl == null)
{ {