Revert workarounds for $@ broken during 5.13.x - mainly 1f870d5a
[dbsrgits/DBIx-Class.git] / t / lib / DBICVersion_v2.pm
CommitLineData
c9d2e0a2 1package DBICVersion::Table;
2
d88ecca6 3use base 'DBIx::Class::Core';
c9d2e0a2 4use strict;
5use warnings;
6
c9d2e0a2 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,
f925f7cb 23 'is_nullable' => 0,
24 'size' => '10'
25 },
1d48fcff 26 'NewVersionName' => {
f925f7cb 27 'data_type' => 'VARCHAR',
28 'is_auto_increment' => 0,
29 'default_value' => undef,
30 'is_foreign_key' => 0,
c9d2e0a2 31 'is_nullable' => 1,
32 'size' => '20'
f925f7cb 33 }
c9d2e0a2 34 );
35
36__PACKAGE__->set_primary_key('Version');
37
38package DBICVersion::Schema;
27a701f9 39use base 'DBICTest::BaseSchema';
c9d2e0a2 40use strict;
41use warnings;
42
43our $VERSION = '2.0';
44
45__PACKAGE__->register_class('Table', 'DBICVersion::Table');
46__PACKAGE__->load_components('+DBIx::Class::Schema::Versioned');
8d6b1478 47__PACKAGE__->upgrade_directory("t/var/versioning_ddl-$$");
48__PACKAGE__->backup_directory("t/var/versioning_backup-$$");
c9d2e0a2 49
c9d2e0a2 501;