| 1 | package DBIO::Test::Schema::ComputedColumn; | ||
| 2 | # ABSTRACT: Test result class for the computed_column_test table | ||
| 3 | |||
| 4 | 3 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 3 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 3 | our $VERSION = '0.900007'; | |
| 8 | |||
| 9 | 3 | ▶ | use base qw/DBIO::Test::BaseResult/; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | |||
| 11 | 3 | __PACKAGE__->table('computed_column_test'); | |
| 12 | |||
| 13 | 3 | __PACKAGE__->add_columns( | |
| 14 | id => { | ||
| 15 | data_type => 'integer', | ||
| 16 | is_auto_increment => 1, | ||
| 17 | }, | ||
| 18 | a_computed_column => { | ||
| 19 | data_type => undef, | ||
| 20 | is_nullable => 0, | ||
| 21 | default_value => \'getdate()', | ||
| 22 | }, | ||
| 23 | a_timestamp => { | ||
| 24 | data_type => 'timestamp', | ||
| 25 | is_nullable => 0, | ||
| 26 | }, | ||
| 27 | charfield => { | ||
| 28 | data_type => 'varchar', | ||
| 29 | size => 20, | ||
| 30 | default_value => 'foo', | ||
| 31 | is_nullable => 0, | ||
| 32 | }, | ||
| 33 | ); | ||
| 34 | |||
| 35 | 3 | __PACKAGE__->set_primary_key('id'); | |
| 36 | |||
| 37 | 3 | 1; | |
| 38 | |||
| 39 | __END__ | ||