mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 03:16:11 +01:00
shortening of noteIds to 12 characters
This commit is contained in:
6
migrations/0016__trim_note_ids2.sql
Normal file
6
migrations/0016__trim_note_ids2.sql
Normal file
@@ -0,0 +1,6 @@
|
||||
UPDATE notes SET note_id = substr(note_id, 0, 13);
|
||||
UPDATE notes_tree SET note_id = substr(note_id, 0, 13), note_pid = substr(note_pid, 0, 13);
|
||||
UPDATE notes_history SET note_id = substr(note_id, 0, 13);
|
||||
UPDATE audit_log SET note_id = substr(note_id, 0, 13);
|
||||
UPDATE links SET note_id = substr(note_id, 0, 13);
|
||||
UPDATE images SET note_id = substr(note_id, 0, 13);
|
||||
Reference in New Issue
Block a user