From f140b77e7c2c9636c0fe2b59c862e6722ea7b690 Mon Sep 17 00:00:00 2001 From: zadam Date: Fri, 15 Feb 2019 21:10:00 +0100 Subject: [PATCH] fix migration script --- db/migrations/0125__create_note_content_table.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/db/migrations/0125__create_note_content_table.sql b/db/migrations/0125__create_note_content_table.sql index 1fbcf55f4..788b27722 100644 --- a/db/migrations/0125__create_note_content_table.sql +++ b/db/migrations/0125__create_note_content_table.sql @@ -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,