As no column attributes were defined we have to
specify all the column values. An alternative
(more sensible) would be to make artistid auto increment
but that means we cannot just copy the example classes.
should probably be using it for population. To do that all you need to do
is create a file called C<dbicdh/_common/deploy/1/create_artists.pl>:
- sub {
- my $schema = shift;
- $schema->resultset('Artist')->populate([
- ['name'],
- ['Marillion'],
- ['The Moutain Goats'],
- ['Ladyhawke'],
- ]);
- };
+ sub {
+ my $schema = shift;
+ $schema->resultset('Artist')->populate([
+ ['artistid', 'name'],
+ [1, 'Marillion'],
+ [2, 'The Moutain Goats'],
+ [3, 'Ladyhawke'],
+ ]);
+ };
=head1 Upgrading