aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/storage_sqlite.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/storage_sqlite.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/storage_sqlite.c b/src/storage_sqlite.c
index 981a5dd..8bee6f1 100644
--- a/src/storage_sqlite.c
+++ b/src/storage_sqlite.c
@@ -120,7 +120,7 @@ static int storage_sqlite_upgrade_to(struct storage_sqlite *storage, size_t vers
{
static const char *const fmt = "%s PRAGMA user_version = %zu;";
- const char *script = sql_sqlite_files[version];
+ const char *script = sqlite_schemas[version];
int ret = 0;
ret = snprintf(NULL, 0, fmt, script, version + 1);
@@ -169,7 +169,7 @@ static int storage_sqlite_upgrade(struct storage_sqlite *storage)
return ret;
log("SQLite database version: %u\n", current_version);
- size_t newest_version = sizeof(sql_sqlite_files) / sizeof(sql_sqlite_files[0]);
+ size_t newest_version = sizeof(sqlite_schemas) / sizeof(sqlite_schemas[0]);
log("Newest database version: %zu\n", newest_version);
if (current_version > newest_version) {