fix migration script

This commit is contained in:
zadam 2019-02-15 21:10:00 +01:00
parent 22228de63b
commit f140b77e7c

View File

@ -11,8 +11,8 @@ CREATE TABLE IF NOT EXISTS "note_contents" (
CREATE UNIQUE INDEX `IDX_note_contents_noteId` ON `note_contents` (`noteId`);
INSERT INTO note_contents (noteContentId, noteId, isProtected, content)
SELECT 'C' || SUBSTR(noteId, 2), noteId, isProtected, content FROM notes;
INSERT INTO note_contents (noteContentId, noteId, isProtected, content, dateCreated, dateModified)
SELECT 'C' || SUBSTR(noteId, 2), noteId, isProtected, content, dateCreated, dateModified FROM notes;
CREATE TABLE IF NOT EXISTS "notes_mig" (
`noteId` TEXT NOT NULL,