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