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

Feat: Grant 1 #9

Merged
merged 36 commits into from
Mar 22, 2024
Merged

Feat: Grant 1 #9

merged 36 commits into from
Mar 22, 2024

Conversation

tmrdlt
Copy link
Member

@tmrdlt tmrdlt commented Mar 14, 2024

Summary of the changes

  • Upgraded dependencies
  • Added PairLiquidityInfoHistory and PairLiquidityInfoHistoryError tables to DB schema
  • Added Prisma Migrate to project:
    • Added init migration for existing schema
    • Added migration for schema additions
  • Implemented pair liquidity info history importer cron job
  • Implemented pair liquidity info history validator cron job
  • Implemented GET history/liquidity API
  • Added Code Check CI

💽 How To Apply Prisma Migrate to existing database

We recommend the following steps to apply Prisma Migrate to the existing producion database:

  • Run these two steps manually:
    1. Resolve migration for existing schema: prisma migrate resolve --applied 0_init
    2. Apply all newer migrations: prisma migrate deploy
  • After the manual steps the DB is up-to-date and ready for future migrations. We recommend adding prisma migrate deploy to the deployment to apply future migrations automatically

tmrdlt added 26 commits March 14, 2024 11:34
@tmrdlt tmrdlt self-assigned this Mar 14, 2024
@kenodressel kenodressel marked this pull request as ready for review March 22, 2024 08:50
@kenodressel kenodressel merged commit 081bbb0 into main Mar 22, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants