Browse Source

Fix: Empty initial db version string to, fixes unintentional migration message

default_compile_flags
vector-of-bool 3 years ago
parent
commit
4f44c21c41
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/dds/db/database.cpp

+ 1
- 1
src/dds/db/database.cpp View File

PRAGMA foreign_keys = 1; PRAGMA foreign_keys = 1;
DROP TABLE IF EXISTS dds_meta; DROP TABLE IF EXISTS dds_meta;
CREATE TABLE IF NOT EXISTS dds_meta_1 AS CREATE TABLE IF NOT EXISTS dds_meta_1 AS
WITH init (version) AS (VALUES ('eggs'))
WITH init (version) AS (VALUES (''))
SELECT * FROM init; SELECT * FROM init;
)"); )");
nsql::transaction_guard tr{db}; nsql::transaction_guard tr{db};

Loading…
Cancel
Save