| 1 | package DBIO::Test::Schema::ArtistGUID; | ||
| 2 | # ABSTRACT: Test result class for the artist_guid table (UNIQUEIDENTIFIER PK) | ||
| 3 | 256 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 256 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 256 | our $VERSION = '0.900007'; | |
| 7 | |||
| 8 | 256 | ▶ | use base 'DBIO::Test::BaseResult'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | |||
| 10 | 256 | __PACKAGE__->table('artist_guid'); | |
| 11 | 256 | __PACKAGE__->add_columns( | |
| 12 | artistid => { | ||
| 13 | data_type => 'uniqueidentifier', | ||
| 14 | is_auto_increment => 1, | ||
| 15 | }, | ||
| 16 | name => { | ||
| 17 | data_type => 'varchar', | ||
| 18 | size => 100, | ||
| 19 | is_nullable => 1, | ||
| 20 | }, | ||
| 21 | rank => { | ||
| 22 | data_type => 'integer', | ||
| 23 | default_value => 13, | ||
| 24 | }, | ||
| 25 | charfield => { | ||
| 26 | data_type => 'char', | ||
| 27 | size => 10, | ||
| 28 | is_nullable => 1, | ||
| 29 | }, | ||
| 30 | a_guid => { | ||
| 31 | data_type => 'uniqueidentifier', | ||
| 32 | is_nullable => 1, | ||
| 33 | auto_nextval => 1, # not a PK -- only auto_nextval triggers GUID prefetch | ||
| 34 | }, | ||
| 35 | ); | ||
| 36 | 256 | __PACKAGE__->set_primary_key('artistid'); | |
| 37 | 256 | __PACKAGE__->resultset_class('DBIO::Test::BaseResultSet'); | |
| 38 | 256 | 1; | |
| 39 | |||
| 40 | __END__ | ||