feat: Enhance update requirements check to include database migrations and rename related interfaces and methods.

This commit is contained in:
syntaxbullet
2025-12-24 14:17:02 +01:00
parent e2aa5ee760
commit 16d507991c
3 changed files with 17 additions and 11 deletions

View File

@@ -52,15 +52,15 @@ export const update = createCommand({
components: []
});
// 1. Check dependencies
const { needsInstall } = await UpdateService.checkDependencies(branch);
// 1. Check what the update requires
const { needsInstall, needsMigrations } = await UpdateService.checkUpdateRequirements(branch);
// 2. Prepare context BEFORE update
await UpdateService.prepareRestartContext({
channelId: interaction.channelId,
userId: interaction.user.id,
timestamp: Date.now(),
runMigrations: true,
runMigrations: needsMigrations,
installDependencies: needsInstall
});