mirror of
https://github.com/yiisoft/yii2.git
synced 2025-10-29 01:17:13 +08:00
18 lines
343 B
PHP
18 lines
343 B
PHP
<?php
|
|
|
|
/**
|
|
* @var \yii\web\View $this
|
|
* @var string $table
|
|
* @var array $foreignKeys
|
|
* @var array $fields
|
|
*/
|
|
|
|
echo $this->render('_dropForeignKeys', [
|
|
'table' => $table,
|
|
'foreignKeys' => $foreignKeys,
|
|
]);
|
|
|
|
foreach ($fields as $field): ?>
|
|
$this->dropColumn('<?= $table ?>', '<?= $field['property'] ?>');
|
|
<?php endforeach;
|