| @@ 794-803 (lines=10) @@ | ||
| 791 | /** |
|
| 792 | * {@inheritdoc} |
|
| 793 | */ |
|
| 794 | public function addForeignKey(Table $table, ForeignKey $foreignKey) |
|
| 795 | { |
|
| 796 | $this->execute( |
|
| 797 | sprintf( |
|
| 798 | 'ALTER TABLE %s ADD %s', |
|
| 799 | $this->quoteTableName($table->getName()), |
|
| 800 | $this->getForeignKeySqlDefinition($foreignKey, $table->getName()) |
|
| 801 | ) |
|
| 802 | ); |
|
| 803 | } |
|
| 804 | ||
| 805 | /** |
|
| 806 | * {@inheritdoc} |
|
| @@ 668-676 (lines=9) @@ | ||
| 665 | /** |
|
| 666 | * {@inheritdoc} |
|
| 667 | */ |
|
| 668 | public function addForeignKey(Table $table, ForeignKey $foreignKey) |
|
| 669 | { |
|
| 670 | $sql = sprintf( |
|
| 671 | 'ALTER TABLE %s ADD %s', |
|
| 672 | $this->quoteTableName($table->getName()), |
|
| 673 | $this->getForeignKeySqlDefinition($foreignKey, $table->getName()) |
|
| 674 | ); |
|
| 675 | $this->execute($sql); |
|
| 676 | } |
|
| 677 | ||
| 678 | /** |
|
| 679 | * {@inheritdoc} |
|