1 package DBICVersion::Table;
3 use base 'DBIx::Class::Core';
7 __PACKAGE__->table('TestVersion');
9 __PACKAGE__->add_columns
11 'data_type' => 'INTEGER',
12 'is_auto_increment' => 1,
13 'default_value' => undef,
14 'is_foreign_key' => 0,
19 'data_type' => 'VARCHAR',
20 'is_auto_increment' => 0,
21 'default_value' => undef,
22 'is_foreign_key' => 0,
28 __PACKAGE__->set_primary_key('Version');
30 package DBICVersion::Schema;
31 use base 'DBICTest::BaseSchema';
37 __PACKAGE__->register_class('Table', 'DBICVersion::Table');
38 __PACKAGE__->load_components('+DBIx::Class::Schema::Versioned');
39 __PACKAGE__->upgrade_directory("t/var/versioning_ddl-$$");
41 sub ordered_schema_versions {
42 return('1.0','2.0','3.0');