Skip to content

Commit 14c9434

Browse files
authored
Merge branch 'main' into generate-env-if-missing
2 parents 529bc00 + c9521d0 commit 14c9434

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

src/Commands/InitCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ protected function runMigrations(): void
423423
],
424424
]);
425425

426-
shell_exec('php artisan migrate --ansi');
426+
shell_exec('php artisan migrate --ansi --force');
427427
}
428428

429429
protected function createAdminUser(string $kebabName, string $serviceKey = '', string $serviceName = ''): array

tests/InitCommandTest.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function testRunWithoutAdminAndReadmeCreationConvertAppNameToPascalCaseTe
4444
$this->callShellExec('./vendor/bin/cghooks update --ansi'),
4545
$this->callShellExec('php artisan lang:publish --ansi'),
4646
$this->callShellExec('php artisan vendor:publish --tag=initializator-web-login --force'),
47-
$this->callShellExec('php artisan migrate --ansi'),
47+
$this->callShellExec('php artisan migrate --ansi --force'),
4848
);
4949

5050
$this
@@ -98,7 +98,7 @@ public function testRunWithoutAdminAndReadmeCreation()
9898
$this->callShellExec('composer require ronasit/laravel-telescope-extension --ansi'),
9999
$this->callShellExec('php artisan telescope:install --ansi'),
100100
$this->callShellExec('php artisan vendor:publish --tag=initializator-web-login --force'),
101-
$this->callShellExec('php artisan migrate --ansi'),
101+
$this->callShellExec('php artisan migrate --ansi --force'),
102102
);
103103

104104
$this
@@ -153,7 +153,7 @@ public function testRunWithAdminAndWithoutReadmeCreation()
153153
$this->callShellExec('composer require ronasit/laravel-telescope-extension --ansi'),
154154
$this->callShellExec('php artisan telescope:install --ansi'),
155155
$this->callShellExec('php artisan vendor:publish --tag=initializator-web-login --force'),
156-
$this->callShellExec('php artisan migrate --ansi'),
156+
$this->callShellExec('php artisan migrate --ansi --force'),
157157
);
158158

159159
$this
@@ -224,7 +224,7 @@ public function testRunWithAdminAndDefaultReadmeCreation()
224224
$this->callShellExec('composer require ronasit/laravel-telescope-extension --ansi'),
225225
$this->callShellExec('php artisan telescope:install --ansi'),
226226
$this->callShellExec('php artisan vendor:publish --tag=initializator-web-login --force'),
227-
$this->callShellExec('php artisan migrate --ansi'),
227+
$this->callShellExec('php artisan migrate --ansi --force'),
228228
);
229229

230230
$this->mockNativeFunction(
@@ -349,7 +349,7 @@ public function testRunWithAdminAndPartialReadmeCreation()
349349
$this->callShellExec('composer require ronasit/laravel-telescope-extension --ansi'),
350350
$this->callShellExec('php artisan telescope:install --ansi'),
351351
$this->callShellExec('php artisan vendor:publish --tag=initializator-web-login --force'),
352-
$this->callShellExec('php artisan migrate --ansi'),
352+
$this->callShellExec('php artisan migrate --ansi --force'),
353353
);
354354

355355
$this->mockNativeFunction(
@@ -464,7 +464,7 @@ public function testRunWithAdminAndFullReadmeCreationAndRemovingInitializatorIns
464464
$this->callShellExec('composer require ronasit/laravel-media --ansi'),
465465
$this->callShellExec('php artisan vendor:publish --tag=initializator-web-login --force'),
466466
$this->callShellExec('composer remove --dev ronasit/laravel-project-initializator --ansi'),
467-
$this->callShellExec('php artisan migrate --ansi'),
467+
$this->callShellExec('php artisan migrate --ansi --force'),
468468
);
469469

470470
$this->mockNativeFunction(
@@ -587,7 +587,7 @@ public function testRunWithoutAdminAndUsingTelescope()
587587
$this->callShellExec('composer require ronasit/laravel-telescope-extension --ansi'),
588588
$this->callShellExec('php artisan telescope:install --ansi'),
589589
$this->callShellExec('php artisan vendor:publish --tag=initializator-web-login --force'),
590-
$this->callShellExec('php artisan migrate --ansi'),
590+
$this->callShellExec('php artisan migrate --ansi --force'),
591591
);
592592

593593
$this->mockNativeFunction(
@@ -715,7 +715,7 @@ public function testRunWithClerkMobileAppWithPintInstalled(): void
715715
$this->callShellExec('composer require ronasit/laravel-telescope-extension --ansi'),
716716
$this->callShellExec('php artisan telescope:install --ansi'),
717717
$this->callShellExec('php artisan vendor:publish --tag=initializator-web-login --force'),
718-
$this->callShellExec('php artisan migrate --ansi'),
718+
$this->callShellExec('php artisan migrate --ansi --force'),
719719
);
720720

721721
$this->mockNativeFunction(
@@ -850,7 +850,7 @@ public function testRunWithClerkAdditionalAdminsWithoutDefaultAdmin(): void
850850
$this->callShellExec('composer require ronasit/laravel-telescope-extension --ansi'),
851851
$this->callShellExec('php artisan telescope:install --ansi'),
852852
$this->callShellExec('php artisan vendor:publish --tag=initializator-web-login --force'),
853-
$this->callShellExec('php artisan migrate --ansi'),
853+
$this->callShellExec('php artisan migrate --ansi --force'),
854854
);
855855

856856
$this->mockNativeFunction(

0 commit comments

Comments
 (0)