fix tests

This commit is contained in:
Saeed Vaziry 2024-03-23 18:21:15 +01:00
parent 3afb6b7eb4
commit c78462b173
2 changed files with 2 additions and 1 deletions

View File

@ -51,6 +51,7 @@ public function handle(): void
$env = File::get(base_path('.env')); $env = File::get(base_path('.env'));
$env = str_replace('DB_CONNECTION=mysql', 'DB_CONNECTION=sqlite', $env); $env = str_replace('DB_CONNECTION=mysql', 'DB_CONNECTION=sqlite', $env);
$env = str_replace('DB_DATABASE=vito', '', $env);
File::put(base_path('.env'), $env); File::put(base_path('.env'), $env);
$this->info('Migrated from Mysql to SQLite'); $this->info('Migrated from Mysql to SQLite');

View File

@ -37,7 +37,7 @@
'sqlite' => [ 'sqlite' => [
'driver' => 'sqlite', 'driver' => 'sqlite',
'database' => storage_path('database.sqlite'), 'database' => storage_path(env('DB_DATABASE', 'database.sqlite')),
'prefix' => '', 'prefix' => '',
'foreign_key_constraints' => env('DB_FOREIGN_KEYS', true), 'foreign_key_constraints' => env('DB_FOREIGN_KEYS', true),
], ],