Files
yii2/framework/views/_dropTable.php
Angel Guevara 49aec24ae1 Enh: Migrate command now supports foreign keys
Fixes #11207: migrate command can create foreign keys
2016-04-05 01:02:52 +03:00

14 lines
316 B
PHP

<?php
/**
* Creates a call for the method `yii\db\Migration::dropTable()`
*/
/* @var $table string the name table */
/* @var $foreignKeys array the foreign keys */
echo $this->render('_dropForeignKeys', [
'table' => $table,
'foreignKeys' => $foreignKeys,
]) ?>
$this->dropTable('<?= $table ?>');