| 1 | use strict; | ||
| 2 | use warnings; | ||
| 3 | package DBIx::Class::DeploymentHandler::VersionStorage::WithSchema::VersionResult; | ||
| 4 | |||
| 5 | our $VERSION = '0.004'; | ||
| 6 | |||
| 7 | use parent 'DBIx::Class::Core'; | ||
| 8 | |||
| 9 | __PACKAGE__->table('dbix_class_deploymenthandler_versions_withschemata'); | ||
| 10 | |||
| 11 | __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 | __PACKAGE__->set_primary_key('id'); | ||
| 33 | __PACKAGE__->add_unique_constraint(['schema', 'version']); | ||
| 34 | __PACKAGE__->resultset_class('DBIx::Class::DeploymentHandler::VersionStorage::WithSchema::VersionResultSet'); | ||
| 35 | |||
| 36 | 1; |