2 package Debbugs::DB::Result::Severity;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Debbugs::DB::Result::Severity - Bug severity
16 use base 'DBIx::Class::Core';
18 =head1 COMPONENTS LOADED
22 =item * L<DBIx::Class::InflateColumn::DateTime>
24 =item * L<DBIx::Class::TimeStamp>
30 __PACKAGE__->load_components("InflateColumn::DateTime", "TimeStamp");
32 =head1 TABLE: C<severity>
36 __PACKAGE__->table("severity");
45 sequence: 'severity_id_seq'
62 Severity ordering (more severe severities have higher numbers)
70 True if severity is a strong severity
78 Whether a severity level is obsolete (should not be set on new bugs)
82 __PACKAGE__->add_columns(
85 data_type => "integer",
86 is_auto_increment => 1,
88 sequence => "severity_id_seq",
91 { data_type => "text", is_nullable => 0 },
93 { data_type => "integer", default_value => 5, is_nullable => 0 },
95 { data_type => "boolean", default_value => \"false", is_nullable => 1 },
97 { data_type => "boolean", default_value => \"false", is_nullable => 1 },
110 __PACKAGE__->set_primary_key("id");
112 =head1 UNIQUE CONSTRAINTS
114 =head2 C<severity_severity_idx>
124 __PACKAGE__->add_unique_constraint("severity_severity_idx", ["severity"]);
132 Related object: L<Debbugs::DB::Result::Bug>
136 __PACKAGE__->has_many(
138 "Debbugs::DB::Result::Bug",
139 { "foreign.severity" => "self.id" },
140 { cascade_copy => 0, cascade_delete => 0 },
144 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2014-11-30 21:56:51
145 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:nI4ZqWa6IW7LgWuG7S1Gog
147 sub sqlt_deploy_hook {
148 my ($self, $sqlt_table) = @_;
149 $sqlt_table->add_index(name => 'severity_ordering_idx',
150 fields => [qw(ordering)],