trilium/db/migrations/0002__cleanup_unused_columns_from_notes.sql

3 lines
188 B
MySQL
Raw Normal View History

2017-10-23 09:05:01 +08:00
CREATE TABLE notes_mig AS SELECT note_id, note_title, note_text, note_clone_id, date_created, date_modified, encryption FROM notes;
DROP TABLE notes;
ALTER TABLE notes_mig RENAME TO notes;