mirror of
https://github.com/zadam/trilium.git
synced 2025-10-06 13:39:51 +08:00
fix migration script
This commit is contained in:
parent
22228de63b
commit
f140b77e7c
1 changed files with 2 additions and 2 deletions
|
@ -11,8 +11,8 @@ CREATE TABLE IF NOT EXISTS "note_contents" (
|
||||||
|
|
||||||
CREATE UNIQUE INDEX `IDX_note_contents_noteId` ON `note_contents` (`noteId`);
|
CREATE UNIQUE INDEX `IDX_note_contents_noteId` ON `note_contents` (`noteId`);
|
||||||
|
|
||||||
INSERT INTO note_contents (noteContentId, noteId, isProtected, content)
|
INSERT INTO note_contents (noteContentId, noteId, isProtected, content, dateCreated, dateModified)
|
||||||
SELECT 'C' || SUBSTR(noteId, 2), noteId, isProtected, content FROM notes;
|
SELECT 'C' || SUBSTR(noteId, 2), noteId, isProtected, content, dateCreated, dateModified FROM notes;
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS "notes_mig" (
|
CREATE TABLE IF NOT EXISTS "notes_mig" (
|
||||||
`noteId` TEXT NOT NULL,
|
`noteId` TEXT NOT NULL,
|
||||||
|
|
Loading…
Add table
Reference in a new issue