fix: [migrations:localTools] Make sure the table do not exists before creating it
parent
f0f49ecbc3
commit
b64d7890ca
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue