Today I Learned
django.db.migrations.exceptions.inconsistentmigrationhistory Error
django.db.migrations.exceptions.InconsistentMigrationHistory:
Migration admin.0001_initial is applied before its dependency users.0001_initial
on database 'default'.
django.db.migrations.exceptions.InconsistentMigrationHistory 오류는 Django 마이그레이션의 이력이 일치하지 않을 때 발생하는 문제
아마 마이그레이션 파일이 누락되었거나 잘못된 순서로 마이그레이션 파일이 실행되었을 때 발생한다고 해서
migrations 파일들과 pycahce까지 모두 삭제해보았으나 계속 같은 오류가 생겨서 MySQL DB를 초기화시키고 해결했음!
'내일배움캠프 > 내일배움캠프 TIL' 카테고리의 다른 글
내일배움캠프 TIL 56일차 - 머신러닝 프로젝트 KDT 회고록 (1) | 2023.05.29 |
---|---|
내일배움캠프 TIL 55일차 - 배포에서 RDS(MySQL)사용하기 (0) | 2023.05.29 |
내일배움캠프 TIL 53일차 - aws 과금 주의 (0) | 2023.05.25 |
내일배움캠프 TIL 52일차 - Tosspay render에서 fetch API로 변경하기 (0) | 2023.05.24 |
내일배움캠프 TIL 51일차 (0) | 2023.05.23 |