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

✨ [Feature] DB migration #619

Merged
merged 6 commits into from
Aug 23, 2023
Merged

✨ [Feature] DB migration #619

merged 6 commits into from
Aug 23, 2023

Conversation

jis-kim
Copy link
Contributor

@jis-kim jis-kim commented Aug 22, 2023

Summary

  • auth db 변경으로 인한 migration file 생성

Describe your changes

  • migration 을 위한 커맨드 추가
    • 기본으로 .env.development 를 사용합니다.
    • server 에서 실행 시 커맨드 앞에 NODE_ENV=production 을 붙여 사용해주시면 될 것 같습니다.
    • 나중에 환경분리가 좀 더 정리되면 수정하겠습니다.

실행방법 (local)

  • .env.development 가 잘 설정되었는지 확인합니다.
  • yarn global add typeorm
  • yarn migration:run 을 실행합니다.
  • 되돌리고 싶으면 yarn migration:revert 를 실행합니다.

Issue number and link

@jis-kim jis-kim self-assigned this Aug 22, 2023
@jis-kim jis-kim added enhancement New feature or request backend issue for backend labels Aug 22, 2023
@jis-kim jis-kim added this to the Sprint14 milestone Aug 22, 2023
@jis-kim jis-kim changed the title Feature/back/db migration ✨ [Feature] DB migration Aug 22, 2023
@jis-kim jis-kim removed this from the Sprint14 milestone Aug 22, 2023
@jis-kim jis-kim merged commit ebf7819 into develop Aug 23, 2023
@jis-kim jis-kim deleted the feature/back/db-migration branch August 23, 2023 06:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend issue for backend enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

✨ [Feature] db migration
1 participant