Made database migration compatible with plugins

This commit is contained in:
DJj123dj
2025-02-17 19:44:18 +01:00
parent 58674452d8
commit b12556120c
4 changed files with 48 additions and 5 deletions
+6
View File
@@ -3,6 +3,12 @@ import {opendiscord, api, utilities} from "../../index"
export const migrations = [
//MIGRATE TO v4.0.0
new utilities.ODVersionMigration(api.ODVersion.fromString("opendiscord:version","v4.0.0"),async () => {
//MIGRATE BEFORE STARTUP
//nothing needs to be transferred :)
},() => {
//MIGRATE AFTER INITIAL STARTUP (plugins, flags, config, database, language, ... => loaded)
//nothing needs to be transferred :)
})
]