fix: [migrations:localTools] Make sure the table do not exists before creating it

feature/docker-ci
mokaddem 2021-06-29 10:56:40 +02:00
parent f0f49ecbc3
commit b64d7890ca
1 changed files with 39 additions and 36 deletions

View File

@ -17,6 +17,8 @@ class LocalTools extends AbstractMigration
*/
public function change()
{
$exists = $this->hasTable('local_tools');
if (!$exists) {
$table = $this->table('local_tools', [
'signed' => false,
'collation' => 'utf8mb4_unicode_ci',
@ -59,4 +61,5 @@ class LocalTools extends AbstractMigration
$table->create();
}
}
}