diff --git a/krait/src/Console/InstallCommand.php b/krait/src/Console/InstallCommand.php index 55f5acd..dc8cfff 100644 --- a/krait/src/Console/InstallCommand.php +++ b/krait/src/Console/InstallCommand.php @@ -38,9 +38,8 @@ public function handle(): int { $this->info('Publishing assets...'); - $alreadyMigrated = Schema::hasTable('krait_preview_configurations'); $tags = 'krait-config|krait-js'; - if ($alreadyMigrated) { + if (Schema::hasTable('krait_preview_configurations')) { $tags = "$tags|krait-migrations"; } $this->callSilent('vendor:publish', [ @@ -50,14 +49,6 @@ public function handle(): int $this->registerKraitProvider(); $this->components->info('Assets published successfully ✅'); - if (! $alreadyMigrated) { - $this->info('Running DB migrations...'); - $this->callSilent('migrate'); - $this->components->info('Migrations ran successfully ✅'); - } else { - $this->info('Skipping the migrations as the table exists...'); - } - if (empty($this->option('dev'))) { $this->installJsPackage(); }