From 7ba58ca3ea0a8985fbf00df6ee346c9419bb6016 Mon Sep 17 00:00:00 2001 From: Cole Helbling Date: Sun, 9 May 2021 17:46:18 -0700 Subject: [PATCH] Jobsets: remove defunct Jobs relationship It appears the Jobs table was removed in 8adb433e3b48638f3faaecc61ae5cb63efefff6e, but the Jobsets schema was never updated to reflect this. This relationship was added in efa1f1d4fbdc468c61f7403e8709d0295e052c7f, roughly 3 months prior. Previously, one would see a message similar to the following logged when deleting a jobset: 17:38:23 hydra-server.1 | DBIx::Class::Relationship::CascadeActions::delete(): Skipping cascade delete on relationship 'jobs' - related resultsource 'Hydra::Schema::Jobs' is not registered with this schema at /home/vin/workspace/vcs/hydra/src/script/../lib/Hydra/Controller/Jobset.pm line 106 --- src/lib/Hydra/Schema/Jobsets.pm | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/lib/Hydra/Schema/Jobsets.pm b/src/lib/Hydra/Schema/Jobsets.pm index 77075089..abcb05ae 100644 --- a/src/lib/Hydra/Schema/Jobsets.pm +++ b/src/lib/Hydra/Schema/Jobsets.pm @@ -392,21 +392,6 @@ __PACKAGE__->has_many( undef, ); -=head2 jobs - -Type: has_many - -Related object: L - -=cut - -__PACKAGE__->has_many( - "jobs", - "Hydra::Schema::Jobs", - { "foreign.jobset_id" => "self.id" }, - undef, -); - __PACKAGE__->add_column( "+id" => { retrieve_on_insert => 1 } );