Merge pull request #7352 from firefly-iii/force-commit

Add commit call to force the commands to go through.
This commit is contained in:
James Cole
2023-04-10 07:20:02 +02:00
committed by GitHub
2 changed files with 2 additions and 1 deletions

View File

@@ -43,7 +43,7 @@ use VerifiesAccessToken;
$question = $this->confirm('Do you want to continue?'); $question = $this->confirm('Do you want to continue?');
if (true === $question) { if (true === $question) {
$user = $this->getUser(); $user = $this->getUser();
Log::channel('audit')->info(sprintf('User #%d ("%s") forced migrations.', $user->id, $user->email)); Log::channel('audit')->info(sprintf('User #%d ("%s") forced DECIMAL size.', $user->id, $user->email));
$this->updateDecimals(); $this->updateDecimals();
return 0; return 0;
} }

View File

@@ -57,6 +57,7 @@ class ForceMigration extends Command
private function forceMigration(): void private function forceMigration(): void
{ {
DB::commit();
$this->line('Dropping "migrations" table...'); $this->line('Dropping "migrations" table...');
sleep(2); sleep(2);
Schema::dropIfExists('migrations'); Schema::dropIfExists('migrations');