| @@ 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} |
|
| @@ 683-691 (lines=9) @@ | ||
| 680 | /** |
|
| 681 | * {@inheritdoc} |
|
| 682 | */ |
|
| 683 | public function addForeignKey(Table $table, ForeignKey $foreignKey) |
|
| 684 | { |
|
| 685 | $sql = sprintf( |
|
| 686 | 'ALTER TABLE %s ADD %s', |
|
| 687 | $this->quoteTableName($table->getName()), |
|
| 688 | $this->getForeignKeySqlDefinition($foreignKey, $table->getName()) |
|
| 689 | ); |
|
| 690 | $this->execute($sql); |
|
| 691 | } |
|
| 692 | ||
| 693 | /** |
|
| 694 | * {@inheritdoc} |
|