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,
27 'data_type' => 'VARCHAR',
28 'is_auto_increment' => 0,
29 'default_value' => undef,
30 'is_foreign_key' => 0,
35 'data_type' => 'VARCHAR',
36 'is_auto_increment' => 0,
37 'default_value' => undef,
38 'is_foreign_key' => 0,
44 __PACKAGE__->set_primary_key('Version');
46 package DBICVersion::Schema;
47 use base 'DBICTest::BaseSchema';
53 __PACKAGE__->register_class('Table', 'DBICVersion::Table');
54 __PACKAGE__->load_components('+DBIx::Class::Schema::Versioned');
55 __PACKAGE__->upgrade_directory("t/var/versioning_ddl-$$");
56 __PACKAGE__->backup_directory("t/var/versioning_backup-$$");