mirror of
https://github.com/zadam/trilium.git
synced 2025-01-27 09:29:43 +08:00
cleanup columns from notes table
This commit is contained in:
parent
14625cc613
commit
1cc75ad385
2 changed files with 4 additions and 1 deletions
3
migrations/0002__cleanup_unused_columns_from_notes.sql
Normal file
3
migrations/0002__cleanup_unused_columns_from_notes.sql
Normal file
|
@ -0,0 +1,3 @@
|
|||
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;
|
|
@ -2,7 +2,7 @@ const backup = require('./backup');
|
|||
const sql = require('./sql');
|
||||
const fs = require('fs-extra');
|
||||
|
||||
const APP_DB_VERSION = 1;
|
||||
const APP_DB_VERSION = 2;
|
||||
const MIGRATIONS_DIR = "./migrations";
|
||||
|
||||
async function migrate() {
|
||||
|
|
Loading…
Reference in a new issue