init
This commit is contained in:
14
vendor/yiisoft/yii2/views/_dropForeignKeys.php
vendored
Normal file
14
vendor/yiisoft/yii2/views/_dropForeignKeys.php
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
<?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;
|
||||
Reference in New Issue
Block a user