[Django] makemigrations와 migrate 차이
Django 공식 문서에 보면 이렇게 나와있다. migrate은 마이그레이션을 반영하거나 반영하지 않기 위해 사용합니다. > 원문 : migrate, which is responsible for applying and unapplying migrations. makemigrations는 모델을 변경한 것에 기반한 새로운 마이그레이션을 만들 때 사용합니다. > 원문 : makemigrations, which is responsible for creating new migrations based on the changes you have made to your models. sqlmigrate은 마이그레이션을 위한 SQL 구문을 보기 위해 사용합니다. > 원문 : sqlmigrate, which displays the SQL statements for a migration showmigrations는 프로젝트 전체의 마이그레이션과 각각의 상태를 나열하기 위해 사용합니다. > 원문 : showmigrations, which lists a project’s migrations and their status. 다시 간단하게 적으면 다음과 같다. ...