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,
36 __PACKAGE__->set_primary_key('Version');
38 package DBICVersion::Schema;
39 use base 'DBIx::Class::Schema';
45 __PACKAGE__->register_class('Table', 'DBICVersion::Table');
46 __PACKAGE__->load_components('+DBIx::Class::Schema::Versioned');
47 __PACKAGE__->upgrade_directory('t/var/');
48 __PACKAGE__->backup_directory('t/var/backup/');
50 #sub upgrade_directory