feat(server): remove old keyboard shortcuts from options (closes #4543)

This commit is contained in:
Elian Doran
2026-04-11 10:48:09 +03:00
parent 1becc18354
commit b8d7277d88

View File

@@ -6,6 +6,16 @@
// Migrations should be kept in descending order, so the latest migration is first.
const MIGRATIONS: (SqlMigration | JsMigration)[] = [
// Clean up obsolete keyboard shortcut options from renamed actions
{
version: 237,
sql: /*sql*/`
DELETE FROM options WHERE name = 'keyboardShortcutsShowNoteRevisions';
DELETE FROM entity_changes WHERE entityName = 'options' AND entityId = 'keyboardShortcutsShowNoteRevisions';
DELETE FROM options WHERE name = 'keyboardShortcutsForceSaveNoteRevision';
DELETE FROM entity_changes WHERE entityName = 'options' AND entityId = 'keyboardShortcutsForceSaveNoteRevision';
`
},
// Add text representation column to blobs table
{
version: 236,