Notify old configuration entries for node db

This commit is contained in:
Vinnie Falco
2013-07-10 14:17:41 -07:00
parent 5804c61bfb
commit 2c9dbe6e52

View File

@@ -938,6 +938,19 @@ static void addTxnSeqField ()
void Application::updateTables ()
{
if (theConfig.NODE_DB.empty ())
{
Log (lsFATAL) << "The NODE_DB configuration setting MUST be set";
StopSustain ();
exit (1);
}
else if (theConfig.NODE_DB == "LevelDB" || theConfig.NODE_DB == "SQLite")
{
Log (lsFATAL) << "The NODE_DB setting has been updated, your value is out of date";
StopSustain ();
exit (1);
}
// perform any needed table updates
assert (schemaHas (getApp().getTxnDB (), "AccountTransactions", 0, "TransID"));
assert (!schemaHas (getApp().getTxnDB (), "AccountTransactions", 0, "foobar"));