refactor: move places warning outside condition

pull/460/head
Varun Patil 2023-02-23 22:49:25 -08:00
parent b4e1bf2c4f
commit 62db624710
1 changed files with 8 additions and 7 deletions

View File

@ -301,15 +301,16 @@ class PlacesSetup extends Command
$this->gisType = GIS_TYPE_NONE;
return;
} else {
$this->output->writeln('');
$this->output->writeln("Database table prefix is set to '{$prefix}'");
$this->output->writeln('If the planet can be imported, it will not use this prefix');
$this->output->writeln('The table will be named "memories_planet_geometry"');
$this->output->writeln('This is necessary for using custom database extensions');
$this->output->writeln('');
}
// Warn the admin about the database prefix not being used
$this->output->writeln('');
$this->output->writeln("Database table prefix is set to '{$prefix}'");
$this->output->writeln('If the planet can be imported, it will not use this prefix');
$this->output->writeln('The table will be named "memories_planet_geometry"');
$this->output->writeln('This is necessary for using custom database extensions');
$this->output->writeln('');
// Detect database type
$platform = strtolower(\get_class($this->connection->getDatabasePlatform()));