| @@ 792-801 (lines=10) @@ | ||
| 789 | /** |
|
| 790 | * {@inheritdoc} |
|
| 791 | */ |
|
| 792 | public function addForeignKey(Table $table, ForeignKey $foreignKey) |
|
| 793 | { |
|
| 794 | $this->execute( |
|
| 795 | sprintf( |
|
| 796 | 'ALTER TABLE %s ADD %s', |
|
| 797 | $this->quoteTableName($table->getName()), |
|
| 798 | $this->getForeignKeySqlDefinition($foreignKey, $table->getName()) |
|
| 799 | ) |
|
| 800 | ); |
|
| 801 | } |
|
| 802 | ||
| 803 | /** |
|
| 804 | * {@inheritdoc} |
|
| @@ 677-685 (lines=9) @@ | ||
| 674 | /** |
|
| 675 | * {@inheritdoc} |
|
| 676 | */ |
|
| 677 | public function addForeignKey(Table $table, ForeignKey $foreignKey) |
|
| 678 | { |
|
| 679 | $sql = sprintf( |
|
| 680 | 'ALTER TABLE %s ADD %s', |
|
| 681 | $this->quoteTableName($table->getName()), |
|
| 682 | $this->getForeignKeySqlDefinition($foreignKey, $table->getName()) |
|
| 683 | ); |
|
| 684 | $this->execute($sql); |
|
| 685 | } |
|
| 686 | ||
| 687 | /** |
|
| 688 | * {@inheritdoc} |
|