Jobsets: remove defunct Jobs relationship
It appears the Jobs table was removed in8adb433e3b, but the Jobsets schema was never updated to reflect this. This relationship was added inefa1f1d4fb, 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
This commit is contained in:
		| @@ -392,21 +392,6 @@ __PACKAGE__->has_many( | |||||||
|   undef, |   undef, | ||||||
| ); | ); | ||||||
|  |  | ||||||
| =head2 jobs |  | ||||||
|  |  | ||||||
| Type: has_many |  | ||||||
|  |  | ||||||
| Related object: L<Hydra::Schema::Jobs> |  | ||||||
|  |  | ||||||
| =cut |  | ||||||
|  |  | ||||||
| __PACKAGE__->has_many( |  | ||||||
|   "jobs", |  | ||||||
|   "Hydra::Schema::Jobs", |  | ||||||
|   { "foreign.jobset_id" => "self.id" }, |  | ||||||
|   undef, |  | ||||||
| ); |  | ||||||
|  |  | ||||||
| __PACKAGE__->add_column( | __PACKAGE__->add_column( | ||||||
|     "+id" => { retrieve_on_insert => 1 } |     "+id" => { retrieve_on_insert => 1 } | ||||||
| ); | ); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user