Skip to content

Commit

Permalink
fix dacapo:init Base table or view already exists: 1050 Table 'users'…
Browse files Browse the repository at this point in the history
… already exists (#186)
  • Loading branch information
ucan-lab authored Mar 1, 2022
1 parent 95ac282 commit 6089954
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Dacapo/Presentation/Console/DacapoInitCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,9 @@ public function handle(Filesystem $filesystem): void
$from = __DIR__ . '/DacapoInitCommand/' . $version . '.yml';
$to = $this->laravel->databasePath('schemas/default.yml');
file_put_contents($to, file_get_contents($from));

$this->line('<fg=green>Generated:</> database/schemas/default.yml');

$this->call('dacapo:clear', ['--all']);
$this->call('dacapo', ['--no-migrate' => $this->option('no-migrate')]);
}
}

0 comments on commit 6089954

Please sign in to comment.