added kashkool 2

This commit is contained in:
2026-06-11 22:22:31 +03:30
parent 2d177ad581
commit 80bcfbf5cf
2 changed files with 1 additions and 27 deletions
-21
View File
@@ -1,21 +0,0 @@
<?php
namespace App\Console\Commands;
use Illuminate\Database\Console\Migrations\MigrateCommand as BaseMigrateCommand;
class MigrateCommand extends BaseMigrateCommand
{
/**
* Never auto-load database/schema/*.sql — it DROP TABLEs and wipes production data
* when the migrations table is empty. Use baseline_migrations.sql on existing DBs.
*/
protected function prepareDatabase()
{
if (! $this->migrator->repositoryExists()) {
$this->call('migrate:install', array_filter([
'--database' => $this->option('database'),
]));
}
}
}
+1 -6
View File
@@ -13,12 +13,7 @@ class AppServiceProvider extends ServiceProvider
*/
public function register()
{
$this->app->extend('command.migrate', function ($command, $app) {
return new \App\Console\Commands\MigrateCommand(
$app['migrator'],
$app['events']
);
});
//
}
/**