12 lines
299 B
MySQL
12 lines
299 B
MySQL
|
-- 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;
|