| 1 | package DBIO::Test::Schema::TimestampPrimaryKey; | ||
| 2 | # ABSTRACT: Test result class for timestamp primary key handling | ||
| 3 | |||
| 4 | 256 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 256 | our $VERSION = '0.900007'; | |
| 7 | |||
| 8 | 256 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | |||
| 10 | 256 | ▶ | use base qw/DBIO::Test::BaseResult/; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | |||
| 12 | 256 | __PACKAGE__->table('timestamp_primary_key_test'); | |
| 13 | |||
| 14 | 256 | __PACKAGE__->add_columns( | |
| 15 | 'id' => { | ||
| 16 | data_type => 'timestamp', | ||
| 17 | default_value => \'current_timestamp', | ||
| 18 | retrieve_on_insert => 1, | ||
| 19 | }, | ||
| 20 | ); | ||
| 21 | |||
| 22 | 256 | __PACKAGE__->set_primary_key('id'); | |
| 23 | |||
| 24 | 256 | 1; | |
| 25 | |||
| 26 | __END__ | ||