mirror of https://github.com/TriliumNext/Notes
removed ID from options, opt_name is now new primary key
parent
a7f95e95e9
commit
4073f6a967
@ -0,0 +1,11 @@
|
|||||||
|
CREATE TABLE `options_mig` (
|
||||||
|
`opt_name` TEXT NOT NULL PRIMARY KEY,
|
||||||
|
`opt_value` TEXT,
|
||||||
|
`date_modified` INT
|
||||||
|
);
|
||||||
|
|
||||||
|
INSERT INTO options_mig (opt_name, opt_value, date_modified)
|
||||||
|
SELECT opt_name, opt_value, date_modified FROM options;
|
||||||
|
|
||||||
|
DROP TABLE options;
|
||||||
|
ALTER TABLE options_mig RENAME TO options;
|
||||||
Loading…
Reference in New Issue