mirror of
https://github.com/asphyxia-core/plugins.git
synced 2026-09-22 22:27:56 +03:00
initailize migration helper
This commit is contained in:
@@ -11,7 +11,7 @@ export const getVersion = (info: EamuseInfo) => {
|
||||
return moduleName.match(/([^_]*)_(.*)/)[1];
|
||||
};
|
||||
|
||||
export function isRequiredVersion(major: number, minor: number) {
|
||||
export function isRequiredCoreVersion(major: number, minor: number) {
|
||||
// version value exposed since Core v1.19
|
||||
const core_major = typeof CORE_VERSION_MAJOR === "number" ? CORE_VERSION_MAJOR : 1
|
||||
const core_minor = typeof CORE_VERSION_MINOR === "number" ? CORE_VERSION_MINOR : 18
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
export async function initialze() {
|
||||
await dbMigration()
|
||||
}
|
||||
|
||||
async function dbMigration() {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user