Merge pull request #1049 from DeterminateSystems/drop-systemtypes

SystemTypes: drop database table.
This commit is contained in:
Graham Christensen 2021-10-24 21:46:57 -04:00 committed by GitHub
commit 592fef9d82
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 1 additions and 82 deletions

View file

@ -1,74 +0,0 @@
use utf8;
package Hydra::Schema::Result::SystemTypes;
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
=head1 NAME
Hydra::Schema::Result::SystemTypes
=cut
use strict;
use warnings;
use base 'DBIx::Class::Core';
=head1 COMPONENTS LOADED
=over 4
=item * L<Hydra::Component::ToJSON>
=back
=cut
__PACKAGE__->load_components("+Hydra::Component::ToJSON");
=head1 TABLE: C<systemtypes>
=cut
__PACKAGE__->table("systemtypes");
=head1 ACCESSORS
=head2 system
data_type: 'text'
is_nullable: 0
=head2 maxconcurrent
data_type: 'integer'
default_value: 2
is_nullable: 0
=cut
__PACKAGE__->add_columns(
"system",
{ data_type => "text", is_nullable => 0 },
"maxconcurrent",
{ data_type => "integer", default_value => 2, is_nullable => 0 },
);
=head1 PRIMARY KEY
=over 4
=item * L</system>
=back
=cut
__PACKAGE__->set_primary_key("system");
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-08-26 12:02:36
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:skzz9Wqwox5QO35YSgVXbw
1;

View file

@ -440,13 +440,6 @@ create table CachedCVSInputs (
primary key (uri, module, sha256hash) primary key (uri, module, sha256hash)
); );
-- FIXME: remove
create table SystemTypes (
system text primary key not null,
maxConcurrent integer not null default 2
);
create table EvaluationErrors ( create table EvaluationErrors (
id serial primary key not null, id serial primary key not null,
errorMsg text, -- error output from the evaluator errorMsg text, -- error output from the evaluator

View file

@ -40,7 +40,6 @@ make_schema_at("Hydra::Schema", {
"schemaversion" => "SchemaVersion", "schemaversion" => "SchemaVersion",
"starredjobs" => "StarredJobs", "starredjobs" => "StarredJobs",
"systemstatus" => "SystemStatus", "systemstatus" => "SystemStatus",
"systemtypes" => "SystemTypes",
"taskretries" => "TaskRetries", "taskretries" => "TaskRetries",
"urirevmapper" => "UriRevMapper", "urirevmapper" => "UriRevMapper",
"userroles" => "UserRoles", "userroles" => "UserRoles",

1
src/sql/upgrade-78.sql Normal file
View file

@ -0,0 +1 @@
DROP TABLE SystemTypes;