1 package DBICVersion::Table;
3 use base 'DBIx::Class';
7 __PACKAGE__->load_components(qw/ Core/);
8 __PACKAGE__->table('TestVersion');
10 __PACKAGE__->add_columns
12 'data_type' => 'INTEGER',
13 'is_auto_increment' => 1,
14 'default_value' => undef,
15 'is_foreign_key' => 0,
20 'data_type' => 'VARCHAR',
21 'is_auto_increment' => 0,
22 'default_value' => undef,
23 'is_foreign_key' => 0,
29 __PACKAGE__->set_primary_key('Version');
31 package DBICVersion::Schema;
32 use base 'DBIx::Class::Schema';
38 __PACKAGE__->register_class('Table', 'DBICVersion::Table');
39 __PACKAGE__->load_components('+DBIx::Class::Schema::Versioned');