OPENBUS-3021 OPENBUS-2970 Remoção das colunas sobre legacy

SQLite3 não suporta remoção de constraints nem de colunas dinamicamente,
portanto ao migrar o banco será preciso recriar as tabelas login e
loginObserver.
parent 20178b47
......@@ -37,14 +37,12 @@ local SQL_create_tables = [[
CREATE TABLE IF NOT EXISTS login (
id TEXT PRIMARY KEY,
entity TEXT NOT NULL,
encodedkey BLOB NOT NULL,
allowLegacyDelegate INTEGER
encodedkey BLOB NOT NULL
);
CREATE TABLE IF NOT EXISTS loginObserver (
id TEXT PRIMARY KEY,
ior TEXT NOT NULL,
legacy INTEGER,
login TEXT NOT NULL
REFERENCES login(id)
ON DELETE CASCADE
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment