2 package Debbugs::DB::Result::BugVer;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Debbugs::DB::Result::BugVer - Bug versions
16 use base 'DBIx::Class::Core';
18 =head1 COMPONENTS LOADED
22 =item * L<DBIx::Class::InflateColumn::DateTime>
28 __PACKAGE__->load_components("InflateColumn::DateTime");
30 =head1 TABLE: C<bug_ver>
34 __PACKAGE__->table("bug_ver");
59 Source package id (matches src_pkg table)
67 Source package version id (matches src_ver table)
75 True if this is a found version; false if this is a fixed version
79 data_type: 'timestamp with time zone'
80 default_value: current_timestamp
82 original: {default_value => \"now()"}
84 Time that this entry was created
88 data_type: 'timestamp with time zone'
89 default_value: current_timestamp
91 original: {default_value => \"now()"}
93 Time that this entry was modified
97 __PACKAGE__->add_columns(
99 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
101 { data_type => "text", is_nullable => 1 },
103 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
105 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
107 { data_type => "boolean", default_value => \"true", is_nullable => 0 },
110 data_type => "timestamp with time zone",
111 default_value => \"current_timestamp",
113 original => { default_value => \"now()" },
117 data_type => "timestamp with time zone",
118 default_value => \"current_timestamp",
120 original => { default_value => \"now()" },
124 =head1 UNIQUE CONSTRAINTS
126 =head2 C<bug_ver_bug_ver_string_found_idx>
132 =item * L</ver_string>
140 __PACKAGE__->add_unique_constraint(
141 "bug_ver_bug_ver_string_found_idx",
142 ["bug", "ver_string", "found"],
151 Related object: L<Debbugs::DB::Result::Bug>
155 __PACKAGE__->belongs_to(
157 "Debbugs::DB::Result::Bug",
159 { is_deferrable => 0, on_delete => "RESTRICT", on_update => "CASCADE" },
166 Related object: L<Debbugs::DB::Result::SrcPkg>
170 __PACKAGE__->belongs_to(
172 "Debbugs::DB::Result::SrcPkg",
177 on_delete => "SET NULL",
178 on_update => "CASCADE",
186 Related object: L<Debbugs::DB::Result::SrcVer>
190 __PACKAGE__->belongs_to(
192 "Debbugs::DB::Result::SrcVer",
193 { id => "src_ver_id" },
197 on_delete => "SET NULL",
198 on_update => "CASCADE",
203 # Created by DBIx::Class::Schema::Loader v0.07036 @ 2013-10-09 20:27:54
204 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:AlnpfT/8jqREfK5zVfPyPw
207 # You can replace this text with custom code or comments, and it will be preserved on regeneration