| 1 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 2 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | package DBIx::Class::DeploymentHandler::VersionStorage::WithSchema::VersionResult; | ||
| 4 | |||
| 5 | 1 | our $VERSION = '0.002'; | |
| 6 | |||
| 7 | 1 | ▶ | use parent 'DBIx::Class::Core'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | 1 | __PACKAGE__->table('dbix_class_deploymenthandler_versions_withschemata'); | |
| 10 | |||
| 11 | 1 | __PACKAGE__->add_columns( | |
| 12 | id => { | ||
| 13 | data_type => 'int', | ||
| 14 | is_auto_increment => 1, | ||
| 15 | }, | ||
| 16 | schema => { | ||
| 17 | data_type => 'text', | ||
| 18 | }, | ||
| 19 | version => { | ||
| 20 | data_type => 'text', | ||
| 21 | }, | ||
| 22 | ddl => { | ||
| 23 | data_type => 'text', | ||
| 24 | is_nullable => 1, | ||
| 25 | }, | ||
| 26 | upgrade_sql => { | ||
| 27 | data_type => 'text', | ||
| 28 | is_nullable => 1, | ||
| 29 | }, | ||
| 30 | ); | ||
| 31 | |||
| 32 | 1 | __PACKAGE__->set_primary_key('id'); | |
| 33 | 1 | __PACKAGE__->add_unique_constraint(['schema', 'version']); | |
| 34 | 1 | __PACKAGE__->resultset_class('DBIx::Class::DeploymentHandler::VersionStorage::WithSchema::VersionResultSet'); | |
| 35 | |||
| 36 | 1 | 1; | |