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_id_ver_string_found_idx>
132 =item * L</ver_string>
140 __PACKAGE__->add_unique_constraint(
141 "bug_ver_bug_id_ver_string_found_idx",
142 ["bug_id", "ver_string", "found"],
151 Related object: L<Debbugs::DB::Result::Bug>
155 __PACKAGE__->belongs_to(
157 "Debbugs::DB::Result::Bug",
159 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
166 Related object: L<Debbugs::DB::Result::SrcPkg>
170 __PACKAGE__->belongs_to(
172 "Debbugs::DB::Result::SrcPkg",
173 { id => "src_pkg_id" },
177 on_delete => "CASCADE",
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 => "CASCADE",
198 on_update => "CASCADE",
203 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-01-22 21:35:43
204 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:d+zLb/svrH4BgZjZXT+hdg
207 # You can replace this text with custom code or comments, and it will be preserved on regeneration