Fix check_csync_update

Commit 8160963110 changed the
SQL requests from csync to read from the checksumtype table.
So we need to add this table in the fake DB as well
This commit is contained in:
Olivier Goffart 2017-07-03 17:24:56 +02:00
parent 946c6967e9
commit 30095a0c3f

View file

@ -52,6 +52,13 @@ static void statedb_create_metadata_table(sqlite3 *db)
rc = sqlite3_exec(db, sql, NULL, NULL, NULL);
//const char *msg = sqlite3_errmsg(db);
assert_int_equal( rc, SQLITE_OK );
sql = "CREATE TABLE IF NOT EXISTS checksumtype("
"id INTEGER PRIMARY KEY,"
"name TEXT UNIQUE"
");";
rc = sqlite3_exec(db, sql, NULL, NULL, NULL);
assert_int_equal( rc, SQLITE_OK );
}
}