| @@ 662-670 (lines=9) @@ | ||
| 659 | /** |
|
| 660 | * {@inheritdoc} |
|
| 661 | */ |
|
| 662 | public function addForeignKey(Table $table, ForeignKey $foreignKey) |
|
| 663 | { |
|
| 664 | $sql = sprintf( |
|
| 665 | 'ALTER TABLE %s ADD %s', |
|
| 666 | $this->quoteTableName($table->getName()), |
|
| 667 | $this->getForeignKeySqlDefinition($foreignKey, $table->getName()) |
|
| 668 | ); |
|
| 669 | $this->execute($sql); |
|
| 670 | } |
|
| 671 | ||
| 672 | /** |
|
| 673 | * {@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} |
|