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,
28 'data_type' => 'VARCHAR',
29 'is_auto_increment' => 0,
30 'default_value' => undef,
31 'is_foreign_key' => 0,
37 __PACKAGE__->set_primary_key('Version');
39 package DBICVersion::Schema;
40 use base 'DBIx::Class::Schema';
46 __PACKAGE__->register_class('Table', 'DBICVersion::Table');
47 __PACKAGE__->load_components('+DBIx::Class::Schema::Versioned');
48 __PACKAGE__->upgrade_directory('t/var/');
49 __PACKAGE__->backup_directory('t/var/backup/');
51 #sub upgrade_directory