Browse Source

do not print white characters in log for the first migration

master
Tomasz Sowa 2 months ago
parent
commit
9e222f5b80
  1. 12
      winixd/models/migration.cpp

12
winixd/models/migration.cpp

@ -5,7 +5,7 @@
*/
/*
* Copyright (c) 2021, Tomasz Sowa
* Copyright (c) 2021-2022, Tomasz Sowa
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -115,13 +115,11 @@ bool Migration::do_migration(int & current_table_version)
bool Migration::create_winix_schema()
{
// may the name of a schema (core) should be a parameter in the config?
const char * str[] = {
"create schema if not exists core",
};
const char * str = R"sql(
create schema if not exists core
)sql";
return db_query(str);
return db_query(str, sizeof(str) / sizeof(const char*));
}

Loading…
Cancel
Save