do not print white characters in log for the first migration

This commit is contained in:
Tomasz Sowa 2022-05-28 06:10:39 +02:00
parent 3b5658ff8f
commit 9e222f5b80
1 changed files with 5 additions and 7 deletions

View File

@ -5,7 +5,7 @@
*/ */
/* /*
* Copyright (c) 2021, Tomasz Sowa * Copyright (c) 2021-2022, Tomasz Sowa
* All rights reserved. * All rights reserved.
* *
* Redistribution and use in source and binary forms, with or without * 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() 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( return db_query(str, sizeof(str) / sizeof(const char*));
create schema if not exists core
)sql";
return db_query(str);
} }