Skip to content

Commit

Permalink
fix: prevent wiping out existing database on install (#4092)
Browse files Browse the repository at this point in the history
  • Loading branch information
SychO9 authored Oct 25, 2024
1 parent 9817cb8 commit bb29e87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/core/src/Install/Steps/RunMigrations.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function run(): void
{
$migrator = $this->getMigrator();

if (! $migrator->installFromSchema($this->path, $this->driver)) {
if (! $migrator->repositoryExists() && ! $migrator->installFromSchema($this->path, $this->driver)) {
$migrator->getRepository()->createRepository();
}

Expand Down

0 comments on commit bb29e87

Please sign in to comment.