| 1 | package DBIO::Test::Schema::NoPrimaryKey; | ||
| 2 | # ABSTRACT: Test result class for a table with no primary key | ||
| 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('noprimarykey'); | |
| 13 | 256 | __PACKAGE__->add_columns( | |
| 14 | 'foo' => { data_type => 'integer' }, | ||
| 15 | 'bar' => { data_type => 'integer' }, | ||
| 16 | 'baz' => { data_type => 'integer' }, | ||
| 17 | ); | ||
| 18 | |||
| 19 | 256 | __PACKAGE__->add_unique_constraint(foo_bar => [ qw/foo bar/ ]); | |
| 20 | |||
| 21 | 256 | 1; | |
| 22 | |||
| 23 | __END__ | ||