Skip to content

Commit

Permalink
feat(app): ECB-54: update food service tags, use tsKey instead of id (#…
Browse files Browse the repository at this point in the history
…1448)

<!--- Please provide a general summary of your changes in the title
above -->

# Pull Request type

<!-- Please try to limit your pull request to one type; submit multiple
pull requests if needed. -->

Please check the type of change your PR introduces:

- [ ] Bugfix
- [x] Feature
- [ ] Code style update (formatting, renaming)
- [ ] Refactoring (no functional changes, no API changes)
- [ ] Build-related changes
- [ ] Documentation content changes
- [ ] Other (please describe):

## What is the current behavior?

<!-- Please describe the current behavior that you are modifying, or
link to a relevant issue. -->

Issue Number: N/A

## What is the new behavior?

<!-- Please describe the behavior or changes that are being added by
this PR. -->

-
-
-

## Does this introduce a breaking change?

- [ ] Yes
- [ ] No

<!-- If this does introduce a breaking change, please describe the
impact and migration path for existing applications below. -->

## Other information

<!-- Any other information that is important to this PR, such as
screenshots of how the component looks before and after the change. -->
  • Loading branch information
trigal2012 authored Jan 16, 2025
2 parents 0a5a914 + e86fe80 commit 49f34bb
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions packages/db/prisma/data-migrations/2025-01-15_update-food-tags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,31 +31,37 @@ export const job20250115_update_food_tags_to_active = {

const update = await prisma.$transaction([
prisma.serviceTag.update({
where: { id: 'svtg_01J1GDWBVVQ9BBBWMDW3J8J4MT' },
where: { tsKey_tsNs: { tsKey: 'food.community-meals', tsNs: 'services' } },
data: {
active: true,
},
}),
prisma.serviceTag.update({
where: { id: 'svtg_01J1GDWBWJKRP2H2NC84CXAERQ' },
where: { tsKey_tsNs: { tsKey: 'food.food-assistance', tsNs: 'services' } },
data: {
active: true,
},
}),
prisma.serviceTag.update({
where: { id: 'svtg_01J1GDWBWZJAKK8GBQ9GECY6W6' },
where: { tsKey_tsNs: { tsKey: 'food.food-pantries', tsNs: 'services' } },
data: {
active: true,
},
}),
prisma.serviceTag.update({
where: { id: 'svtg_01J1GDWBXBWPMPZCNAYNCGEHYP' },
where: { tsKey_tsNs: { tsKey: 'food.food-delivery', tsNs: 'services' } },
data: {
active: true,
},
}),
prisma.serviceTag.update({
where: { id: 'svtg_01J1GDWBXYEJX7RJP7XRXJYPAH' },
where: { tsKey_tsNs: { tsKey: 'food.nutrition-education', tsNs: 'services' } },
data: {
active: true,
},
}),
prisma.serviceTag.update({
where: { tsKey_tsNs: { tsKey: 'housing.drop-in-centers', tsNs: 'services' } },
data: {
active: true,
},
Expand Down

0 comments on commit 49f34bb

Please sign in to comment.