-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3302 from LiteFarmOrg/LF-4029-update-responses-fo…
…r-what-type-of-certification-during-certification-flow LF-4029 - change name of Organic type selection choice to third party…
- Loading branch information
Showing
9 changed files
with
50 additions
and
17 deletions.
There are no files selected for viewing
32 changes: 32 additions & 0 deletions
32
packages/api/db/migration/20240717190534_update_organic_certification_type.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* | ||
* Copyright (c) 2024 LiteFarm.org | ||
* This file is part of LiteFarm. | ||
* | ||
* LiteFarm is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* LiteFarm is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details, see <https://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
export const up = async function (knex) { | ||
await knex('certifications') | ||
.update({ | ||
certification_translation_key: 'THIRD_PARTY_ORGANIC', | ||
certification_type: 'Third-party Organic', | ||
}) | ||
.where({ certification_translation_key: 'ORGANIC', certification_type: 'Organic' }); | ||
}; | ||
|
||
export const down = async function (knex) { | ||
await knex('certifications') | ||
.update({ certification_translation_key: 'ORGANIC', certification_type: 'Organic' }) | ||
.where({ | ||
certification_translation_key: 'THIRD_PARTY_ORGANIC', | ||
certification_type: 'Third-party Organic', | ||
}); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"ORGANIC": "Organic", | ||
"THIRD_PARTY_ORGANIC": "Third-party organic", | ||
"PGS": "Participatory guarantee system" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"ORGANIC": "Orgánica", | ||
"THIRD_PARTY_ORGANIC": "Orgánica por auditoría", | ||
"PGS": "Sistema participativo de garantía" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"ORGANIC": "Biologique", | ||
"THIRD_PARTY_ORGANIC": "Biologique par audit", | ||
"PGS": "Système de participation garantie" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"ORGANIC": "Orgânica por auditoria", | ||
"THIRD_PARTY_ORGANIC": "Orgânica por auditoria", | ||
"PGS": "Sistema Participativo de Garantia (SPG)" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters