Skip to content

Commit

Permalink
Merge pull request #3797 from bernarden/feature/cleanup-dev-startup-o…
Browse files Browse the repository at this point in the history
…utput

Cleanup console output during startup.
  • Loading branch information
tidusjar committed Oct 7, 2020
2 parents 148ae2e + deb6881 commit 799061a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Ombi.Store/Context/Sqlite/ExternalSqliteContext.cs
Expand Up @@ -24,7 +24,7 @@ private void Upgrade()
{
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'); ");
}
catch (Exception)
Expand Down
2 changes: 1 addition & 1 deletion src/Ombi.Store/Context/Sqlite/OmbiSqliteContext.cs
Expand Up @@ -22,7 +22,7 @@ private void Upgrade()
{
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'); ");
}
catch (Exception)
Expand Down
2 changes: 1 addition & 1 deletion src/Ombi.Store/Context/Sqlite/SettingsSqliteContext.cs
Expand Up @@ -20,7 +20,7 @@ private void Upgrade()
{
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'); ");
}
catch (Exception)
Expand Down
4 changes: 4 additions & 0 deletions src/Ombi/Program.cs
Expand Up @@ -96,6 +96,10 @@ public static void Main(string[] args)

urlValue = url.Value;
}
else if (string.IsNullOrEmpty(urlValue))
{
urlValue = host;
}

if (dbBaseUrl == null)
{
Expand Down

0 comments on commit 799061a

Please sign in to comment.