trilium/db/migrations/0002__cleanup_unused_columns_from_notes.sql

3 lines
No EOL
188 B
SQL

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;