From ed932eab2ffba6c4c31b1ab4e602de08ea2c63a4 Mon Sep 17 00:00:00 2001 From: ppoffice Date: Sat, 15 Jan 2022 18:26:38 -0500 Subject: [PATCH] chore(core): update config scheme version --- include/migration/head.js | 2 +- include/migration/v4_v5.js | 11 +++++++++++ include/schema/config.json | 2 +- 3 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 include/migration/v4_v5.js diff --git a/include/migration/head.js b/include/migration/head.js index e1807e4..db0c11f 100644 --- a/include/migration/head.js +++ b/include/migration/head.js @@ -1 +1 @@ -module.exports = require('./v3_v4'); +module.exports = require('./v4_v5'); diff --git a/include/migration/v4_v5.js b/include/migration/v4_v5.js new file mode 100644 index 0000000..e7c4d54 --- /dev/null +++ b/include/migration/v4_v5.js @@ -0,0 +1,11 @@ +const Migration = require('hexo-component-inferno/lib/core/migrate').Migration; + +module.exports = class extends Migration { + constructor() { + super('5.0.0', null); + } + + upgrade(config) { + return config; + } +}; diff --git a/include/schema/config.json b/include/schema/config.json index a9767b9..b558d7b 100644 --- a/include/schema/config.json +++ b/include/schema/config.json @@ -7,7 +7,7 @@ "version": { "type": "string", "description": "Version of the configuration file", - "default": "4.0.0" + "default": "5.0.0" }, "variant": { "type": "string",