aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/storage_sqlite.c
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-07-11 18:09:02 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-07-11 18:09:02 +0200
commit60082c69f13715ac0e2f75c5e99578595dbfb7b9 (patch)
treebad13da819f7aaf03f3d8d679d30fd1022d64b32 /src/storage_sqlite.c
parenttest: more compact CI scripts (diff)
downloadcimple-60082c69f13715ac0e2f75c5e99578595dbfb7b9.tar.gz
cimple-60082c69f13715ac0e2f75c5e99578595dbfb7b9.zip
sqlite: rename SQL schema variables
Diffstat (limited to 'src/storage_sqlite.c')
-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) {