Jobs: add a nullable jobset_id foreign key to Jobsets.
[?]
Feb 5, 2020, 10:10 PM
SIDK2E7VTH36ETTT7VQWKUXIJE3GQCH4EA33TJG3S4ZTOPTKYCNACDependencies
- [2]
FZR7ET5DJobsets: add a SERIAL, unique, non-null id column - [3]
CCIORPJ5When manually scheduling an eval, force re-instantiation of store derivations - [4]
MWXDVTS3Copy the flake migration from the flake branch - [5]
KQAQ4FIFUpdate Schema classes - [6]
X27GNHDV* Basic job info in the database. - [7]
SB2V735VKeep track of the database schema version - [8]
PCKLFRT5Support push notification of repository changes - [9]
IGR322YPsql: Generate models from postgresql - [10]
FYO6NECEhydra - [11]
JM3DPYOMgenerated schema with new dbix class schema loader, grrrrrr - [12]
QLOLZHRXAllow a per-jobset check interval - [13]
DH3KNBAVMerge remote-tracking branch 'upstream/who-broke-builds' into upstream-master - [14]
K3HODXGHCheck all inputs for blame but only email selected inputs - [15]
T5BIOVJEAdd support for tracking custom metrics - [16]
W4G5MZZShydra-evaluator improvements - [17]
PCD3ZH6ZPartially revert 1c20cfdf2403feb78cef515faf15c04d5c9f17bd - [18]
S5PV6IIM* Represent jobs explicitly in the DB. - [19]
Y6AHH4THRemove the logfile and logSize columns from the database - [20]
GEADFVZ5hydra-queue-runner: Improved scheduling - [21]
KSBB33REAdd a dashboard - [22]
SS4TZXNUDistinguish between permanent evaluation errors and transient input errors - [23]
LZVO64YGMerge in the first bits of the API work - [24]
W5OAZWPDDrop the errorMsg column in the Jobs table - [*]
KN3VYE5P* Cleaned up the foreign key constraints. - [*]
N22GPKYT* Put info about logs / build products in the DB. - [*]
D5QIOJGP* Move everything up one directory.
Change contents
- edit in src/lib/Hydra/Schema/Jobs.pm at line 49
=head2 jobset_iddata_type: 'integer'is_foreign_key: 1is_nullable: 1 - edit in src/lib/Hydra/Schema/Jobs.pm at line 68
"jobset_id",{ data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, - edit in src/lib/Hydra/Schema/Jobs.pm at line 140
"Hydra::Schema::Jobsets",{ id => "jobset_id" },{is_deferrable => 0,join_type => "LEFT",on_delete => "CASCADE",on_update => "NO ACTION",},);=head2 jobset_project_jobsetType: belongs_toRelated object: L<Hydra::Schema::Jobsets>=cut__PACKAGE__->belongs_to("jobset_project_jobset", - replacement in src/lib/Hydra/Schema/Jobs.pm at line 200
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2020-02-06 12:22:36# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:sYa6dZNK+stMAnTH0Tmn8A# Created by DBIx::Class::Schema::Loader v0.07049 @ 2020-02-06 12:30:58# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:dFusVjxb423gIEoadAw9sw - edit in src/lib/Hydra/Schema/Jobsets.pm at line 277
=head2 jobs_jobset_idsType: has_many - replacement in src/lib/Hydra/Schema/Jobsets.pm at line 282
=head2 jobsRelated object: L<Hydra::Schema::Jobs>=cut__PACKAGE__->has_many("jobs_jobset_ids","Hydra::Schema::Jobs",{ "foreign.jobset_id" => "self.id" },undef,);=head2 jobs_project_jobsets - replacement in src/lib/Hydra/Schema/Jobsets.pm at line 302
"jobs","jobs_project_jobsets", - replacement in src/lib/Hydra/Schema/Jobsets.pm at line 396
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2020-02-09 15:25:17# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:1CMOaLf9fYRdJBlYiivmxA# Created by DBIx::Class::Schema::Loader v0.07049 @ 2020-02-09 15:26:15# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:DH1jX0smo2rFvyr4V+qJcw=head2 jobsType: has_manyRelated object: L<Hydra::Schema::Jobs>=cut__PACKAGE__->has_many("jobs","Hydra::Schema::Jobs",{"foreign.jobset" => "self.name","foreign.project" => "self.project",},undef,); - edit in src/sql/hydra.sql at line 149
jobset_id integer null, - edit in src/sql/hydra.sql at line 153
foreign key (jobset_id) references Jobsets(id) on delete cascade, - file addition: upgrade-60.sql[28.3004]
-- Add the jobset_id columns to the Jobs table. This will go-- quickly, since the field is nullable. Note this is just part one of-- this migration. Future steps involve a piecemeal backfilling, and-- then making the column non-null.ALTER TABLE JobsADD COLUMN jobset_id integer NULL,ADD FOREIGN KEY (jobset_id)REFERENCES Jobsets(id)ON DELETE CASCADE;