Commit 181d405a authored by Michal 'vorner' Vaner's avatar Michal 'vorner' Vaner
Browse files

[963] Minor whitespace fixes

parent 538350b7
......@@ -78,7 +78,7 @@ upgrades = [
# Move to the latest "V1" state of the database if not there
# already.
"CREATE TABLE IF NOT EXISTS diffs (" +
"id INTEGER PRIMARY KEY, " +
"id INTEGER PRIMARY KEY, " +
"zone_id INTEGER NOT NULL," +
"version INTEGER NOT NULL, " +
"operation INTEGER NOT NULL, " +
......@@ -419,7 +419,7 @@ def get_version(db):
def match_version(db, expected):
"""
@brief Check database version against that expected
Checks whether the version of the database matches that expected for
the upgrade. Both the major and minor versions must match.
......
......@@ -287,12 +287,12 @@ rm -f $tempfile $backupfile
echo "3.1. Database is not an SQLite file - check"
echo "This is not an sqlite3 database" > $tempfile
../run_dbutil.sh --check $tempfile
../run_dbutil.sh --check $tempfile
failzero $?
check_no_backup $tempfile $backupfile
echo "3.2. Database is not an SQLite file - upgrade"
../run_dbutil.sh --upgrade --noconfirm $tempfile
../run_dbutil.sh --upgrade --noconfirm $tempfile
failzero $?
# ...and as before, a backup should have been created
check_backup $tempfile $backupfile
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment