remove: migration scripts

This commit is contained in:
JellyBrick
2023-10-10 00:51:16 +09:00
parent 926b9fb5e6
commit 52ba2dc9ff

View File

@ -10,16 +10,6 @@ const setDefaultPluginOptions = (store: Conf<Record<string, unknown>>, plugin: k
};
const migrations = {
'>=2.0.3'(store: Conf<Record<string, unknown>>) {
if (store.get('plugins.discord.hideGitHubButton') === undefined) {
store.set('plugins.discord.hideGitHubButton', false);
}
},
'>=2.0.0'(store: Conf<Record<string, unknown>>) {
if (store.get('plugins.disable-autoplay.applyOnce') === undefined) {
store.set('plugins.disable-autoplay.applyOnce', false);
}
},
'>=1.20.0'(store: Conf<Record<string, unknown>>) {
setDefaultPluginOptions(store, 'visualizer');