Trunk passes tests again - todoify everything multicreate related to branch it out...
[dbsrgits/DBIx-Class.git] / t / lib / DBICVersionNew.pm
CommitLineData
c9d2e0a2 1package DBICVersion::Table;
2
3use base 'DBIx::Class';
4use strict;
5use warnings;
6
7__PACKAGE__->load_components(qw/ Core/);
8__PACKAGE__->table('TestVersion');
9
10__PACKAGE__->add_columns
11 ( 'Version' => {
12 'data_type' => 'INTEGER',
13 'is_auto_increment' => 1,
14 'default_value' => undef,
15 'is_foreign_key' => 0,
16 'is_nullable' => 0,
17 'size' => ''
18 },
19 'VersionName' => {
20 'data_type' => 'VARCHAR',
21 'is_auto_increment' => 0,
22 'default_value' => undef,
23 'is_foreign_key' => 0,
f925f7cb 24 'is_nullable' => 0,
25 'size' => '10'
26 },
1d48fcff 27 'NewVersionName' => {
f925f7cb 28 'data_type' => 'VARCHAR',
29 'is_auto_increment' => 0,
30 'default_value' => undef,
31 'is_foreign_key' => 0,
c9d2e0a2 32 'is_nullable' => 1,
33 'size' => '20'
f925f7cb 34 }
c9d2e0a2 35 );
36
37__PACKAGE__->set_primary_key('Version');
38
39package DBICVersion::Schema;
40use base 'DBIx::Class::Schema';
41use strict;
42use warnings;
43
44our $VERSION = '2.0';
45
46__PACKAGE__->register_class('Table', 'DBICVersion::Table');
47__PACKAGE__->load_components('+DBIx::Class::Schema::Versioned');
8795fefb 48__PACKAGE__->upgrade_directory('t/var/');
49__PACKAGE__->backup_directory('t/var/backup/');
c9d2e0a2 50
8795fefb 51#sub upgrade_directory
52#{
53# return 't/var/';
54#}
c9d2e0a2 55
561;