Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Re^4: dbicdump and relationships

by blue_cowdawg (Monsignor)
on Jan 14, 2013 at 15:13 UTC ( #1013230=note: print w/replies, xml ) Need Help??

in reply to Re^3: dbicdump and relationships
in thread dbicdump and relationships

      As you can see, it looks like mysql silently ignores references in your SQL statements and doesn't create foreign keys. I would say it is rather nasty behaviour, if it doesn't accept your syntax it should throw an error.

I knew there was something I didn't like about MySQL. I don't think I have that issue with PostgreSQL. :-(

Peter L. Berghold -- Unix Professional
Peter -at- Berghold -dot- Net; AOL IM redcowdawg Yahoo IM: blue_cowdawg

Replies are listed 'Best First'.
Re^5: dbicdump and relationships
by Anonymous Monk on Jan 14, 2013 at 15:18 UTC
    :) sqlt -f MySQL -t MySQL < in > out
    ... INDEX (`sector`), PRIMARY KEY (`subsector_id`), CONSTRAINT `subsector_fk` FOREIGN KEY (`density`) REFERENCES `densit +y` (`density_id`), CONSTRAINT `subsector_fk_1` FOREIGN KEY (`sector`) REFERENCES `secto +r` (`sector_id`) ) ENGINE=InnoDB; SET foreign_key_checks=1;

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1013230]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2018-06-22 00:09 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (120 votes). Check out past polls.