Initial commit,修正

This commit is contained in:
2025-07-13 19:37:38 +08:00
parent 38ce288e27
commit 65bbd06981
12384 changed files with 3985464 additions and 8 deletions
+19
View File
@@ -0,0 +1,19 @@
<?php foreach ($foreignKeys as $column => $fkData): ?>
// creates index for column `<?= $column ?>`
$this->createIndex(
'<?= $fkData['idx'] ?>',
'<?= $table ?>',
'<?= $column ?>'
);
// add foreign key for table `<?= $fkData['relatedTable'] ?>`
$this->addForeignKey(
'<?= $fkData['fk'] ?>',
'<?= $table ?>',
'<?= $column ?>',
'<?= $fkData['relatedTable'] ?>',
'<?= $fkData['relatedColumn'] ?>',
'CASCADE'
);
<?php endforeach;