Jobsets: add a SERIAL, unique, non-null id column
[?]
Feb 5, 2020, 7:06 PM
FZR7ET5DMHNNGB24QVFVVTGT3F6OKGG4PX7HW2YLJPBAUDVNJJHQCDependencies
- [2]
MWXDVTS3Copy the flake migration from the flake branch - [3]
FYO6NECEhydra - [4]
PCKLFRT5Support push notification of repository changes - [5]
LZVO64YGMerge in the first bits of the API work - [6]
KQAQ4FIFUpdate Schema classes - [7]
SS4TZXNUDistinguish between permanent evaluation errors and transient input errors - [8]
W5OAZWPDDrop the errorMsg column in the Jobs table - [9]
W4G5MZZShydra-evaluator improvements - [10]
PCD3ZH6ZPartially revert 1c20cfdf2403feb78cef515faf15c04d5c9f17bd - [11]
KSBB33REAdd a dashboard - [12]
ACBS7C6Qhydra-queue-runner: Detect changes to the scheduling shares - [13]
CCIORPJ5When manually scheduling an eval, force re-instantiation of store derivations - [14]
FGQPXZIXhydra: make nr of build to keep configurable per jobset - [15]
SB2V735VKeep track of the database schema version - [16]
X27GNHDV* Basic job info in the database. - [17]
QLOLZHRXAllow a per-jobset check interval - [18]
KN3VYE5P* Cleaned up the foreign key constraints. - [19]
DH3KNBAVMerge remote-tracking branch 'upstream/who-broke-builds' into upstream-master - [20]
GEADFVZ5hydra-queue-runner: Improved scheduling - [21]
BXHG3HYLWhen renaming a jobset, add a redirect from the old name - [22]
T5BIOVJEAdd support for tracking custom metrics - [23]
K3HODXGHCheck all inputs for blame but only email selected inputs - [24]
IGR322YPsql: Generate models from postgresql - [25]
Y6AHH4THRemove the logfile and logSize columns from the database - [26]
LLAJKVGIFix syntax error - [*]
JM3DPYOMgenerated schema with new dbix class schema loader, grrrrrr - [*]
N22GPKYT* Put info about logs / build products in the DB. - [*]
D5QIOJGP* Move everything up one directory.
Change contents
- edit in src/lib/Hydra/Schema/Jobsets.pm at line 42
=head2 id - edit in src/lib/Hydra/Schema/Jobsets.pm at line 45
data_type: 'integer'is_auto_increment: 1is_nullable: 0sequence: 'jobsets_id_seq' - edit in src/lib/Hydra/Schema/Jobsets.pm at line 163
"id",{data_type => "integer",is_auto_increment => 1,is_nullable => 0,sequence => "jobsets_id_seq",}, - edit in src/lib/Hydra/Schema/Jobsets.pm at line 225
=head1 UNIQUE CONSTRAINTS=head2 C<jobsets_id_unique>=over 4=item * L</id>=back=cut__PACKAGE__->add_unique_constraint("jobsets_id_unique", ["id"]); - replacement in src/lib/Hydra/Schema/Jobsets.pm at line 381
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2020-02-09 15:21:11# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:FVP1/AWjdKTlY6djrG592A# Created by DBIx::Class::Schema::Loader v0.07049 @ 2020-02-09 15:25:17# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:1CMOaLf9fYRdJBlYiivmxA__PACKAGE__->add_column("+id" => { retrieve_on_insert => 1 }); - edit in src/sql/hydra.sql at line 55
id serial not null, - replacement in src/sql/hydra.sql at line 80
foreign key (project) references Projects(name) on delete cascade on update cascadeforeign key (project) references Projects(name) on delete cascade on update cascade,constraint Jobsets_id_unique UNIQUE(id) - file addition: upgrade-59.sql[30.3004]
-- will automatically add unique IDs to Jobsets.ALTER TABLE JobsetsADD COLUMN id SERIAL NOT NULL,ADD CONSTRAINT Jobsets_id_unique UNIQUE (id);