mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 23:45:10 +00:00
Merge pull request #7352 from firefly-iii/force-commit
Add commit call to force the commands to go through.
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
@@ -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');
|
||||||
|
Reference in New Issue
Block a user