Skip to content

Commit 77fa093

Browse files
authored
rename method (#252)
1 parent 2e67bad commit 77fa093

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Schema.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ protected function findConstraints(TableSchemaInterface $table): void
391391
$table->foreignKey($id, [$foreignKey['table'], $foreignKey['from'] => $foreignKey['to']]);
392392
} else {
393393
/** composite FK */
394-
$table->compositeFK($id, $foreignKey['from'], $foreignKey['to']);
394+
$table->compositeForeignKey($id, $foreignKey['from'], $foreignKey['to']);
395395
}
396396
}
397397
}

src/TableSchema.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*/
1212
final class TableSchema extends AbstractTableSchema
1313
{
14-
public function compositeFK(int $id, string $from, string $to): void
14+
public function compositeForeignKey(int $id, string $from, string $to): void
1515
{
1616
$this->foreignKeys[$id][$from] = $to;
1717
}

0 commit comments

Comments
 (0)