Welcome Guest, Not a member yet? Register   Sign In
dbforge with foreign keys

Hi, I was wondering whether there was any way to specify foreign keys while defining columns with dbforge->add_field function besides altering the table manually with custom queries after the table is created. Thank you.

[eluser]Phil Sturgeon[/eluser]
Foreign Keys are not standard SQL and do not work with all systems, so as per AR principals there is no way to do it with nice syntax in DBForge. You will need to do it manually. :-(

Thank you.

Theme © iAndrew 2016 - Forum software by © MyBB