Constraint Naming Fix This allows naming of a constraint. Currently, you will only receive the mysql auto named constraint. Currently only this syntax works: ->addForeignKey( 'client_id', 'clients', 'client_id' )
Constraint Naming Fix
This allows naming of a constraint. Currently, you will only receive the mysql auto named constraint.
Currently only this syntax works: ->addForeignKey( 'client_id', 'clients', 'client_id' )

This fix will allow this syntax to be used: ->addForeignKey( 'client_id', 'clients', 'client_id', array( 'constraint' => 'job_types_ibfk_1', 'delete' => 'RESTRICT', 'update' => 'RESTRICT' ) )
The "constraint" option was not being handled properly, resulting in invalid SQL syntax

Signed-off-by: Jonathan Galpin <3692bfa45759a67d83aedf0045f6cb635a966abf@iqzero.net>

castamir/phinx,dankempster/phinx,aCodify/phinx,berarma/phinx,kamioftea/phinx,channelgrabber/phinx,dancryer/phinx,dunknicoll/phinx,stevemarksmonii/phinx,igormx/phinx,lornajane/phinx,boedy/phinx,PinZhang/phinx,rquadling/phinx,HavokInspiration/phinx,robmorgan/phinx,ikagawa/phinx,Stene3/phinx,k10r/phinx,BambooHR/phinx-mt,gnugat/phinx,t1gor/phinx,angelorighi/phinx,aCodify/phinx,daniel-gomes-sociomantic/phinx,vitormattos/phinx,laurin1/phinx,gerkirill/phinx,jimdoescode/phinx,kevbaldwyn/phinx,Thamrongsak/phinx,boedy/phinx,DeltaPHP/phinx,courtney-miles/phinx,lzpfmh/phinx,curtisgibby/phinx