[Dbix-class] Re: dbicadmin deploy not making sense

Leandro Hermida softdev at leandrohermida.com
Sun Aug 1 19:56:54 GMT 2010


Hi again,

I just added the --schema-class to try and make it happy and ran the
following command:

dbicadmin -Ilib --deploy --config=myapp.conf
--config-stanza=MyApp::Model::Schema --schema-class=MyApp::Schema

With the following stack trace:

Attribute (config) does not pass the type constraint because:
Validation failed for 'DBIx::Class::Admin::Types::DBICHashRef' with
value myapp.conf at
/home/hermida/soft/perl/5.12.1/lib/site_perl/5.12.1/x86_64-linux-thread-multi/Moose/Meta/Attribute.pm
line 736
	Moose::Meta::Attribute::_coerce_and_verify('Moose::Meta::Attribute=HASH(0x3811fd0)',
'myapp.conf', 'DBIx::Class::Admin=HASH(0x321b708)') called at
/home/hermida/soft/perl/5.12.1/lib/site_perl/5.12.1/x86_64-linux-thread-multi/Moose/Meta/Attribute.pm
line 389
	Moose::Meta::Attribute::initialize_instance_slot('Moose::Meta::Attribute=HASH(0x3811fd0)',
'Moose::Meta::Instance=HASH(0x382fc90)',
'DBIx::Class::Admin=HASH(0x321b708)', 'HASH(0x31e6798)') called at
/home/hermida/soft/perl/5.12.1/lib/site_perl/5.12.1/x86_64-linux-thread-multi/Class/MOP/Class.pm
line 567
	Class::MOP::Class::_construct_instance('Moose::Meta::Class=HASH(0x31eb1d0)',
'HASH(0x31e6798)') called at
/home/hermida/soft/perl/5.12.1/lib/site_perl/5.12.1/x86_64-linux-thread-multi/Class/MOP/Class.pm
line 540
	Class::MOP::Class::new_object('Moose::Meta::Class=HASH(0x31eb1d0)',
'HASH(0x31e6798)') called at
/home/hermida/soft/perl/5.12.1/lib/site_perl/5.12.1/x86_64-linux-thread-multi/Moose/Meta/Class.pm
line 256
	Moose::Meta::Class::new_object('Moose::Meta::Class=HASH(0x31eb1d0)',
'HASH(0x31e6798)') called at
/home/hermida/soft/perl/5.12.1/lib/site_perl/5.12.1/x86_64-linux-thread-multi/Moose/Object.pm
line 25
	Moose::Object::new('DBIx::Class::Admin', 'deploy', 1,
'config_stanza', 'MyApp::Model::Schema', 'schema_class',
'MyApp::Schema', 'action', 'deploy', 'config', 'myapp.conf') called at
/home/hermida/soft/perl/default/bin/dbicadmin line 107

How do you deploy a schema using a Config::General file like is common
for Catalyst?

-L



More information about the DBIx-Class mailing list