Why would we only test with MySQL?
[dbsrgits/DBIx-Class-DeploymentHandler.git] / t / lib / DBICVersion_v1.pm
CommitLineData
1a96bee0 1package DBICVersion::Table;
2
3use base 'DBIx::Class::Core';
4use strict;
5use warnings;
6
7__PACKAGE__->table('TestVersion');
8
9__PACKAGE__->add_columns
10 ( 'Version' => {
11 'data_type' => 'INTEGER',
12 'is_auto_increment' => 1,
13 'default_value' => undef,
14 'is_foreign_key' => 0,
15 'is_nullable' => 0,
16 'size' => ''
17 },
18 'VersionName' => {
19 'data_type' => 'VARCHAR',
20 'is_auto_increment' => 0,
21 'default_value' => undef,
22 'is_foreign_key' => 0,
23 'is_nullable' => 0,
24 'size' => '10'
25 },
26 );
27
28__PACKAGE__->set_primary_key('Version');
29
30package DBICVersion::Schema;
31use base 'DBIx::Class::Schema';
32use strict;
33use warnings;
34
35our $VERSION = '1.0';
36
37__PACKAGE__->register_class('Table', 'DBICVersion::Table');
38__PACKAGE__->load_components('+DBIx::Class::Schema::Versioned');
39
40sub upgrade_directory
41{
42 return 't/var/';
43}
44
45sub ordered_schema_versions {
46 return('1.0','2.0','3.0');
47}
48
491;