diff options
Diffstat (limited to 'perllib/FixMyStreet/DB/Result/AdminLog.pm')
-rw-r--r-- | perllib/FixMyStreet/DB/Result/AdminLog.pm | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/perllib/FixMyStreet/DB/Result/AdminLog.pm b/perllib/FixMyStreet/DB/Result/AdminLog.pm index ede786871..41bc3100a 100644 --- a/perllib/FixMyStreet/DB/Result/AdminLog.pm +++ b/perllib/FixMyStreet/DB/Result/AdminLog.pm @@ -32,13 +32,26 @@ __PACKAGE__->add_columns( default_value => \"ms_current_timestamp()", is_nullable => 0, }, + "user_id", + { data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, + "reason", + { data_type => "text", default_value => "", is_nullable => 0 }, ); __PACKAGE__->set_primary_key("id"); +__PACKAGE__->belongs_to( + "user", + "FixMyStreet::DB::Result::User", + { id => "user_id" }, + { + is_deferrable => 0, + join_type => "LEFT", + on_delete => "NO ACTION", + on_update => "NO ACTION", + }, +); -# Created by DBIx::Class::Schema::Loader v0.07017 @ 2012-03-08 17:19:55 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:+NlSH8U+beRjBZl8CpqK9A - +# Created by DBIx::Class::Schema::Loader v0.07035 @ 2014-07-31 15:58:54 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:okGiaKaVYaTrlz0LCV01vA -# You can replace this text with custom code or comments, and it will be preserved on regeneration 1; |