feat: Enhance update requirements check to include database migrations and rename related interfaces and methods.
This commit is contained in:
@@ -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
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user