Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FTA to RST schema import - rework to update rows in existing database #308

Open
1 task
marcellmueller opened this issue Jan 31, 2025 · 1 comment
Open
1 task
Labels
MVP beta Tickets that are part of the first layer of MVP planning Tech Debt

Comments

@marcellmueller
Copy link
Contributor

marcellmueller commented Jan 31, 2025

Describe the task
Currently our import from the FTA schema to our RST schema is very basic and only works on a freshly cleared database since we run flyway_clean every time we deploy to dev. We need to look at solutions on how to update this since while we could clear the prod database each time for the MVP public site at least - this would mean a couple minutes downtime each deploy, and more downtime if something went wrong.

Longer term we may need to figure out how to only update rows if data has been updated, though that depends on our strategy for migrating users/rec techs from using FTA to using our admin site.

  • For the purpose of the MVP we would likely use some sort of 'on conflict update instead of insert'.
  • This import script is located in migrations/fta/sql/V1.0.2__fta_to_rst.sql
  • For testing this we can run our updated script against the current database in the RDS query editor

Acceptance Criteria

Developer

  • [ ]...
@marcellmueller marcellmueller added MVP beta Tickets that are part of the first layer of MVP planning Tech Debt labels Jan 31, 2025
@BAAlexK
Copy link
Contributor

BAAlexK commented Feb 4, 2025

can maybe do automation on migration - need to research and do some testing
consider switching to prisma (not currently using for migrations) from flyaway

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
MVP beta Tickets that are part of the first layer of MVP planning Tech Debt
Projects
Status: Todo
Development

No branches or pull requests

3 participants