mirror of
https://github.com/zadam/trilium.git
synced 2024-11-17 13:14:44 +08:00
15 lines
454 B
MySQL
15 lines
454 B
MySQL
|
create table options_mig
|
||
|
(
|
||
|
name TEXT not null PRIMARY KEY,
|
||
|
value TEXT,
|
||
|
dateModified INT,
|
||
|
isSynced INTEGER default 0 not null,
|
||
|
hash TEXT default "" not null,
|
||
|
dateCreated TEXT default '1970-01-01T00:00:00.000Z' not null
|
||
|
);
|
||
|
|
||
|
INSERT INTO options_mig (name, value, dateModified, isSynced, hash, dateCreated)
|
||
|
SELECT name, value, dateModified, isSynced, hash, dateCreated FROM options;
|
||
|
|
||
|
DROP TABLE options;
|
||
|
ALTER TABLE options_mig RENAME TO options;
|