portal.mkgtu.ru/common/db/views/_dropColumns.php

11 lines
235 B
PHP
Executable File

<?php
echo $this->render('_dropForeignKeys', [
'table' => $table,
'foreignKeys' => $foreignKeys,
]);
foreach ($fields as $field): ?>
$this->dropColumn('<?= $table ?>', '<?= $field['property'] ?>');
<?php endforeach;