| @@ 793-802 (lines=10) @@ | ||
| 790 | /** | |
| 791 |      * {@inheritdoc} | |
| 792 | */ | |
| 793 | public function addForeignKey(Table $table, ForeignKey $foreignKey) | |
| 794 |     { | |
| 795 | $this->execute( | |
| 796 | sprintf( | |
| 797 | 'ALTER TABLE %s ADD %s', | |
| 798 | $this->quoteTableName($table->getName()), | |
| 799 | $this->getForeignKeySqlDefinition($foreignKey, $table->getName()) | |
| 800 | ) | |
| 801 | ); | |
| 802 | } | |
| 803 | ||
| 804 | /** | |
| 805 |      * {@inheritdoc} | |
| @@ 699-707 (lines=9) @@ | ||
| 696 | /** | |
| 697 |      * {@inheritdoc} | |
| 698 | */ | |
| 699 | public function addForeignKey(Table $table, ForeignKey $foreignKey) | |
| 700 |     { | |
| 701 | $sql = sprintf( | |
| 702 | 'ALTER TABLE %s ADD %s', | |
| 703 | $this->quoteTableName($table->getName()), | |
| 704 | $this->getForeignKeySqlDefinition($foreignKey, $table->getName()) | |
| 705 | ); | |
| 706 | $this->execute($sql); | |
| 707 | } | |
| 708 | ||
| 709 | /** | |
| 710 |      * {@inheritdoc} | |