| @@ 802-811 (lines=10) @@ | ||
| 799 | /** |
|
| 800 | * {@inheritdoc} |
|
| 801 | */ |
|
| 802 | public function addForeignKey(Table $table, ForeignKey $foreignKey) |
|
| 803 | { |
|
| 804 | $this->execute( |
|
| 805 | sprintf( |
|
| 806 | 'ALTER TABLE %s ADD %s', |
|
| 807 | $this->quoteTableName($table->getName()), |
|
| 808 | $this->getForeignKeySqlDefinition($foreignKey, $table->getName()) |
|
| 809 | ) |
|
| 810 | ); |
|
| 811 | } |
|
| 812 | ||
| 813 | /** |
|
| 814 | * {@inheritdoc} |
|
| @@ 693-701 (lines=9) @@ | ||
| 690 | /** |
|
| 691 | * {@inheritdoc} |
|
| 692 | */ |
|
| 693 | public function addForeignKey(Table $table, ForeignKey $foreignKey) |
|
| 694 | { |
|
| 695 | $sql = sprintf( |
|
| 696 | 'ALTER TABLE %s ADD %s', |
|
| 697 | $this->quoteTableName($table->getName()), |
|
| 698 | $this->getForeignKeySqlDefinition($foreignKey, $table->getName()) |
|
| 699 | ); |
|
| 700 | $this->execute($sql); |
|
| 701 | } |
|
| 702 | ||
| 703 | /** |
|
| 704 | * {@inheritdoc} |
|