first commit
This commit is contained in:
22
vendor/yiisoft/yii2/views/_dropForeignKeys.php
vendored
Normal file
22
vendor/yiisoft/yii2/views/_dropForeignKeys.php
vendored
Normal file
@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @var array $foreignKeys
|
||||
* @var string $table
|
||||
*/
|
||||
|
||||
?>
|
||||
<?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