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");
43 sequence: 'bug_ver_id_seq'
68 Source package id (matches src_pkg table)
76 Source package version id (matches src_ver table)
84 True if this is a found version; false if this is a fixed version
88 data_type: 'timestamp with time zone'
89 default_value: current_timestamp
91 original: {default_value => \"now()"}
93 Time that this entry was created
97 data_type: 'timestamp with time zone'
98 default_value: current_timestamp
100 original: {default_value => \"now()"}
102 Time that this entry was modified
106 __PACKAGE__->add_columns(
109 data_type => "integer",
110 is_auto_increment => 1,
112 sequence => "bug_ver_id_seq",
115 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
117 { data_type => "text", is_nullable => 1 },
119 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
121 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
123 { data_type => "boolean", default_value => \"true", is_nullable => 0 },
126 data_type => "timestamp with time zone",
127 default_value => \"current_timestamp",
129 original => { default_value => \"now()" },
133 data_type => "timestamp with time zone",
134 default_value => \"current_timestamp",
136 original => { default_value => \"now()" },
150 __PACKAGE__->set_primary_key("id");
152 =head1 UNIQUE CONSTRAINTS
154 =head2 C<bug_ver_bug_ver_string_found_idx>
160 =item * L</ver_string>
168 __PACKAGE__->add_unique_constraint(
169 "bug_ver_bug_ver_string_found_idx",
170 ["bug", "ver_string", "found"],
179 Related object: L<Debbugs::DB::Result::Bug>
183 __PACKAGE__->belongs_to(
185 "Debbugs::DB::Result::Bug",
187 { is_deferrable => 0, on_delete => "RESTRICT", on_update => "CASCADE" },
194 Related object: L<Debbugs::DB::Result::SrcPkg>
198 __PACKAGE__->belongs_to(
200 "Debbugs::DB::Result::SrcPkg",
205 on_delete => "SET NULL",
206 on_update => "CASCADE",
214 Related object: L<Debbugs::DB::Result::SrcVer>
218 __PACKAGE__->belongs_to(
220 "Debbugs::DB::Result::SrcVer",
225 on_delete => "SET NULL",
226 on_update => "CASCADE",
231 # Created by DBIx::Class::Schema::Loader v0.07036 @ 2013-11-23 17:31:18
232 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:yTXx9otJq7Ur+tbswRs8mQ
235 # You can replace this text with custom code or comments, and it will be preserved on regeneration