rename Change to ChangeLog to avoid reserved word problem
[dbsrgits/DBIx-Class-Journal.git] / lib / DBIx / Class / Schema / Journal / DB / ChangeSet.pm
CommitLineData
f0f14c64 1package DBIx::Class::Schema::Journal::DB::ChangeSet;
2
3use base 'DBIx::Class';
4
5__PACKAGE__->load_components(qw/InflateColumn::DateTime Core/);
6__PACKAGE__->table('changeset');
7
8__PACKAGE__->add_columns(
9 ID => {
10 data_type => 'integer',
11 is_auto_increment => 1,
12 is_primary_key => 1,
13 is_nullable => 0,
14 },
15 user_id => {
16 data_type => 'integer',
74f04ccc 17 is_nullable => 1,
f0f14c64 18 is_foreign_key => 1,
19 },
20 set_date => {
21 data_type => 'timestamp',
22 is_nullable => 0,
1e996809 23 default_value => 'now()',
f0f14c64 24 },
25 session_id => {
26 data_type => 'varchar',
27 size => 255,
28 is_nullable => 1,
29 },
30 );
31
32__PACKAGE__->set_primary_key('ID');
33
341;