[Dbix-class] How to use filename with ->deploy

Emmanuel Quevillon tuco at pasteur.fr
Mon Oct 18 09:30:33 GMT 2010


Hi dbix users,

I am trying to create a schema db into Pg using deploy method.
However, it looks like the method does not use the sql file name 
passed as argument to deploy to create my schema. It looks like it 
uses the schema definition given by my Schema::DBmaint::Result::* 
modules.

Is there a way to use a sql file to be used to create the db schema?

Thanks in advance.

Regards

PS: Here is the code I use :

$conn->deploy({ add_drop_table => 1,
     		show_warnings  => 10,
     		filename       => $file,
     		trace          => 1,
     		validate       => 1})
         && $self->fatal("_create_dbschema", "Can't create schema");
-- 
-------------------------
Emmanuel Quevillon
Biological Software and Databases Group
Institut Pasteur
+33 1 44 38 95 98
tuco at_ pasteur dot fr
-------------------------



More information about the DBIx-Class mailing list