Files
yii2/framework/views/_dropColumns.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;