Skip to content

Commit

Permalink
Refactors SchemaInitializer to enable schema upgrade tests. (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
rotodd authored Jul 14, 2020
1 parent eb99eb0 commit f8967db
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ public void Initialize(bool forceIncrementalSchemaUpgrade = false)
}

GetCurrentSchemaVersion();

_started = true;
}

private void GetCurrentSchemaVersion()
Expand Down Expand Up @@ -196,11 +198,11 @@ public void Start()
if (!string.IsNullOrWhiteSpace(_sqlServerDataStoreConfiguration.ConnectionString))
{
Initialize();
_started = true;
}
else
{
_logger.LogCritical("There was no connection string supplied. Schema initialization can not be completed.");
_logger.LogCritical(
"There was no connection string supplied. Schema initialization can not be completed.");
}
}
}
Expand Down

0 comments on commit f8967db

Please sign in to comment.