src/Phinx/Db/Adapter/MysqlAdapter.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 664-672 (lines=9) @@ | 
                                                            
                                    | 661 |  |     /** | 
                                                            
                                    | 662 |  |      * {@inheritdoc} | 
                                                            
                                    | 663 |  |      */ | 
                                                            
                                    | 664 |  |     protected function getAddForeignKeyInstructions(Table $table, ForeignKey $foreignKey) | 
                                                            
                                    | 665 |  |     { | 
                                                            
                                    | 666 |  |         $alter = sprintf( | 
                                                            
                                    | 667 |  |             'ADD %s', | 
                                                            
                                    | 668 |  |             $this->getForeignKeySqlDefinition($foreignKey) | 
                                                            
                                    | 669 |  |         ); | 
                                                            
                                    | 670 |  |  | 
                                                            
                                    | 671 |  |         return new AlterInstructions([$alter]); | 
                                                            
                                    | 672 |  |     } | 
                                                            
                                    | 673 |  |  | 
                                                            
                                    | 674 |  |     /** | 
                                                            
                                    | 675 |  |      * {@inheritdoc} | 
                                                                        
                 
                                                            
                    
src/Phinx/Db/Adapter/PostgresAdapter.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 707-715 (lines=9) @@ | 
                                                            
                                    | 704 |  |     /** | 
                                                            
                                    | 705 |  |      * {@inheritdoc} | 
                                                            
                                    | 706 |  |      */ | 
                                                            
                                    | 707 |  |     protected function getAddForeignKeyInstructions(Table $table, ForeignKey $foreignKey) | 
                                                            
                                    | 708 |  |     { | 
                                                            
                                    | 709 |  |         $alter = sprintf( | 
                                                            
                                    | 710 |  |             'ADD %s', | 
                                                            
                                    | 711 |  |             $this->getForeignKeySqlDefinition($foreignKey, $table->getName()) | 
                                                            
                                    | 712 |  |         ); | 
                                                            
                                    | 713 |  |  | 
                                                            
                                    | 714 |  |         return new AlterInstructions([$alter]); | 
                                                            
                                    | 715 |  |     } | 
                                                            
                                    | 716 |  |  | 
                                                            
                                    | 717 |  |     /** | 
                                                            
                                    | 718 |  |      * {@inheritdoc} |