Fix silent failures on autoinc PK without an is_auto_increment attribute
[dbsrgits/DBIx-Class.git] / t / cdbi / testlib / ActorAlias.pm
CommitLineData
8273e845 1package # hide from PAUSE
50891152 2 ActorAlias;
3
4use strict;
5use warnings;
6
97d61088 7use base 'DBIC::Test::SQLite';
50891152 8
9__PACKAGE__->set_table( 'ActorAlias' );
10
11__PACKAGE__->columns( Primary => 'id' );
12__PACKAGE__->columns( All => qw/ actor alias / );
13__PACKAGE__->has_a( actor => 'Actor' );
14__PACKAGE__->has_a( alias => 'Actor' );
15
7305f6f9 16# Disables the implicit autoinc-on-non-supplied-pk behavior
17# (and the warning that goes with it)
18# This is the same behavior as it was pre 0.082900
19__PACKAGE__->column_info('id')->{is_auto_increment} = 0;
20
50891152 21sub create_sql {
6a3bf251 22 return qq{
23 id INTEGER PRIMARY KEY,
24 actor INTEGER,
25 alias INTEGER
26 }
50891152 27}
28
291;
30