Skip to content

Commit

Permalink
refactor: 简化 dropIfExists 调用
Browse files Browse the repository at this point in the history
  • Loading branch information
twinh committed Mar 28, 2022
1 parent 6c69819 commit fe13bc9
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/Migration/V20161117184527CreateLogisticsTables.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,11 @@ public function up()
*/
public function down()
{
$this->schema->dropIfExists('logistics_services');
$this->schema->dropIfExists('logistics_providers');
$this->schema->dropIfExists('shipping_tpls');
$this->schema->dropIfExists('shipping_tpl_rules');
$this->schema->dropIfExists([
'logistics_services',
'logistics_providers',
'shipping_tpls',
'shipping_tpl_rules',
]);
}
}

0 comments on commit fe13bc9

Please sign in to comment.