Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Errors when dumping database in Catalyst after make install

by Myrddin Wyllt (Hermit)
on Feb 18, 2016 at 00:57 UTC ( [id://1155510]=note: print w/replies, xml ) Need Help??


in reply to Errors when dumping database in Catalyst after make install

I've had this happen when I tried to re-create the schema of a dev version catalyst application on a machine that had an existing version installed to somewhere in @INC. I got round it by removing the conflicting version, running the create script and re-installing, although I realise this may not be an option in your case.

I just re-created my conflict situation and adding the skip_load_external option to foo_create.pl is working here. So I am getting the errors when I run:-

 script/foo_create.pl model DB DBIC::Schema Foo::Schema create=static dbi:mysql:foo root password

but not when I run:-

script/foo_create.pl model DB DBIC::Schema Foo::Schema create=static +skip_load_external=1 dbi:mysql:foo root password

I think it might matter that the option appears before the connection string, as the DBIx::Class::Schema::Loader docs say that options after the connection don't have any effect - I haven't trawled through the Catalyst code to check this, but as I say, it's working for me as listed above. (Catalyst 5.90103)

UPDATE - I've just tested it again with the option after the connect string, and it doesn't make any difference - still getting errors with skip_load_external=0, which are fixed with skip_load_external=1

Replies are listed 'Best First'.
Re^2: Errors when dumping database in Catalyst after make install
by Beatnik (Parson) on Feb 18, 2016 at 19:42 UTC
    I played around a bit with the relationships in the file, ran a number of variations of the create script and cleaned up @INC. All seems to be OK, for now. skip_load_external=1 has a different effect than skip_load_external=0 and leaving it out altogether.


    Greetz
    Beatnik
    ... I'm belgian but I don't play one on TV.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1155510]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (8)
As of 2024-04-24 12:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found