12 lines
299 B
SQL
12 lines
299 B
SQL
-- key-value store, will be used for various one-off values, serialized to bytes
|
|
CREATE TABLE kv (
|
|
name TEXT PRIMARY KEY,
|
|
value BLOB
|
|
);
|
|
|
|
-- config is currently stored in its own table, as text
|
|
INSERT INTO kv (name, value)
|
|
SELECT 'config', CAST(data AS BLOB) FROM config;
|
|
|
|
DROP TABLE config;
|