From 1225ab486a2b671ce539771ab729da2dbdf4f1ed Mon Sep 17 00:00:00 2001 From: Nick <53413353+nickpalladino@users.noreply.github.com> Date: Wed, 26 Jun 2024 16:33:33 -0400 Subject: [PATCH 1/2] Added db migration to change UNK breeding method class to Increase --- ....23.0__change_unk_breeding_method_class.sql | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/main/resources/db/migration/V1.23.0__change_unk_breeding_method_class.sql diff --git a/src/main/resources/db/migration/V1.23.0__change_unk_breeding_method_class.sql b/src/main/resources/db/migration/V1.23.0__change_unk_breeding_method_class.sql new file mode 100644 index 000000000..b4702d31b --- /dev/null +++ b/src/main/resources/db/migration/V1.23.0__change_unk_breeding_method_class.sql @@ -0,0 +1,18 @@ +/* + * See the NOTICE file distributed with this work for additional information + * regarding copyright ownership. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +update breeding_method set category = 'Increase' where abbreviation = 'UNK'; \ No newline at end of file From d30d04fe464ab5fd75681d39097a5967c3d26be4 Mon Sep 17 00:00:00 2001 From: Nick <53413353+nickpalladino@users.noreply.github.com> Date: Wed, 26 Jun 2024 17:10:23 -0400 Subject: [PATCH 2/2] Removed trailing whitespace on Unknown breeding method --- .../db/migration/V1.23.0__change_unk_breeding_method_class.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/db/migration/V1.23.0__change_unk_breeding_method_class.sql b/src/main/resources/db/migration/V1.23.0__change_unk_breeding_method_class.sql index b4702d31b..7cd4be61e 100644 --- a/src/main/resources/db/migration/V1.23.0__change_unk_breeding_method_class.sql +++ b/src/main/resources/db/migration/V1.23.0__change_unk_breeding_method_class.sql @@ -15,4 +15,4 @@ * limitations under the License. */ -update breeding_method set category = 'Increase' where abbreviation = 'UNK'; \ No newline at end of file +update breeding_method set name = 'Unknown', category = 'Increase' where abbreviation = 'UNK'; \ No newline at end of file