Files
yii2/framework/views/_dropForeignKeys.php
Angel Guevara b923adf75c Enh: Support for useTablePrefix parameter in migrate command
Fixes #11166: migrate command new option `useTablePrefix`
2016-04-06 13:37:37 +03:00

15 lines
406 B
PHP

<?php foreach ($foreignKeys as $column => $fkData): ?>
// drops foreign key for table `<?= $fkData['relatedTable'] ?>`
$this->dropForeignKey(
'<?= $fkData['fk'] ?>',
'<?= $table ?>'
);
// drops index for column `<?= $column ?>`
$this->dropIndex(
'<?= $fkData['idx'] ?>',
'<?= $table ?>'
);
<?php endforeach;