| @@ 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} |
|
| @@ 729-737 (lines=9) @@ | ||
| 726 | /** |
|
| 727 | * {@inheritdoc} |
|
| 728 | */ |
|
| 729 | public function addForeignKey(Table $table, ForeignKey $foreignKey) |
|
| 730 | { |
|
| 731 | $sql = sprintf( |
|
| 732 | 'ALTER TABLE %s ADD %s', |
|
| 733 | $this->quoteTableName($table->getName()), |
|
| 734 | $this->getForeignKeySqlDefinition($foreignKey, $table->getName()) |
|
| 735 | ); |
|
| 736 | $this->execute($sql); |
|
| 737 | } |
|
| 738 | ||
| 739 | /** |
|
| 740 | * {@inheritdoc} |
|