Initial commit

This commit is contained in:
ftc
2025-09-25 23:03:07 +03:00
commit fe417d9941
6627 changed files with 2153223 additions and 0 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;