X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Debbugs%2FDB%2FResult%2FTag.pm;h=c8d539720f5def626952d0e0fe78418fafa0f5c4;hb=466f7faff129a5699c7674f59900a92aa256175d;hp=567c2b5296c850646c45f61d0e0bf5c448d56d9a;hpb=6091f73ce65064a2876ba44253a6335e5208f3d9;p=debbugs.git diff --git a/Debbugs/DB/Result/Tag.pm b/Debbugs/DB/Result/Tag.pm index 567c2b5..c8d5397 100644 --- a/Debbugs/DB/Result/Tag.pm +++ b/Debbugs/DB/Result/Tag.pm @@ -6,7 +6,7 @@ package Debbugs::DB::Result::Tag; =head1 NAME -Debbugs::DB::Result::Tag +Debbugs::DB::Result::Tag - Bug tags =cut @@ -21,11 +21,13 @@ use base 'DBIx::Class::Core'; =item * L +=item * L + =back =cut -__PACKAGE__->load_components("InflateColumn::DateTime"); +__PACKAGE__->load_components("InflateColumn::DateTime", "TimeStamp"); =head1 TABLE: C @@ -42,17 +44,23 @@ __PACKAGE__->table("tag"); is_nullable: 0 sequence: 'tag_id_seq' +Tag id + =head2 tag data_type: 'text' is_nullable: 0 +Tag name + =head2 obsolete data_type: 'boolean' default_value: false is_nullable: 1 +Whether a tag is obsolete (should not be set on new bugs) + =cut __PACKAGE__->add_columns( @@ -108,13 +116,13 @@ Related object: L __PACKAGE__->has_many( "bug_tags", "Debbugs::DB::Result::BugTag", - { "foreign.tag_id" => "self.id" }, + { "foreign.tag" => "self.id" }, { cascade_copy => 0, cascade_delete => 0 }, ); -# Created by DBIx::Class::Schema::Loader v0.07025 @ 2012-07-17 21:09:18 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:4ea1AINoa4KQxMnX4oZwmA +# Created by DBIx::Class::Schema::Loader v0.07042 @ 2014-11-30 21:56:51 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:HH2aKSj4xl+co6qffSdrrQ # You can replace this text with custom code or comments, and it will be preserved on regeneration