1 package Fumo
::Schema
::Revision
;
6 use base
'DBIx::Class';
8 __PACKAGE__
->load_components("Core");
9 __PACKAGE__
->table("revision");
10 __PACKAGE__
->add_columns(
12 { data_type
=> "VARCHAR", default_value
=> "", is_nullable
=> 0, size
=> 128 },
14 { data_type
=> "VARCHAR", default_value
=> "", is_nullable
=> 0, size
=> 128 },
16 { data_type
=> "VARCHAR", default_value
=> "", is_nullable
=> 0, size
=> 128 },
18 { data_type
=> "DATETIME", default_value
=> "", is_nullable
=> 0, size
=> 19 },
20 { data_type
=> "INT", default_value
=> 0, is_nullable
=> 0, size
=> 3 },
22 __PACKAGE__
->set_primary_key("name", "project", "branch");
23 __PACKAGE__
->has_many(
26 { "foreign.revision" => "self.name" },
28 __PACKAGE__
->belongs_to("branch", "Fumo::Schema::Branch", { name
=> "branch" });
29 __PACKAGE__
->belongs_to("project", "Fumo::Schema::Project", { name
=> "project" });
30 __PACKAGE__
->has_many(
33 { "foreign.revision" => "self.name" },
37 # Created by DBIx::Class::Schema::Loader v0.04001 @ 2007-07-20 22:25:16
38 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:G56rSJtt6DLqc9xNTIoQGA
44 $self->created(DateTime
->now);
46 return $self->next::method
(@_);