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

[recnet-api] Create migration down #161

Merged
merged 2 commits into from
Mar 11, 2024

Conversation

joannechen1223
Copy link
Collaborator

@joannechen1223 joannechen1223 commented Mar 10, 2024

Description

According to the suggestion from the last PR, I added down.sql for the init migration. Also I created a script to make the migration work easier.

Related Issue

#160 (comment)

Notes

If you want to create a new migration, you just need to do the following steps:

  1. Edit the apps/recnet-api/prisma/prisma.schema
  2. Export local environment export PRISMA_DATABASE_URL="{LOCAL_DB_URL}"
  3. Run migration script nx run recnet-api:prisma:migrate {MIGRATION_NAME}

TODO

@joannechen1223 joannechen1223 requested a review from swh00tw March 10, 2024 04:34
Copy link

vercel bot commented Mar 10, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
rec-net ⬜️ Ignored (Inspect) Visit Preview Mar 11, 2024 2:44am

@joannechen1223 joannechen1223 force-pushed the recnet-api/create-migration-down branch from 171f47a to 55e19b9 Compare March 11, 2024 02:42
@joannechen1223 joannechen1223 merged commit a014ca7 into recnet-api-dev Mar 11, 2024
3 checks passed
@swh00tw swh00tw deleted the recnet-api/create-migration-down branch January 9, 2025 03:32
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