์ตœ๋Œ€ 1 ๋ถ„ ์†Œ์š”

ํ•ด๊ฒฐํ•œ ๋ฐฉ๋ฒ•

  • DB์˜ ํ…Œ์ด๋ธ”์„ ์ „๋ถ€ ์ง€์šด๋‹ค. (postgreSQL ๊ธฐ์ค€)
DROP SCHEMA public CASCADE;
CREATE SCHEMA public;
  • ๋ชจ๋“  app์˜ migrations ํด๋”์— ์žˆ๋Š” initial.py ํŒŒ์ผ๋“ค์„ ์ง€์šด๋‹ค. (pychace, init.py๋Š” ์ง€์šฐ๋ฉด ์•ˆ๋จ)
  • python [manage.py](http://manage.py) makemigrations ์ˆ˜ํ–‰
  • python [manage.py](http://manage.py) migrate ์ˆ˜ํ–‰

์—ฌ๊ธฐ์„œ ์˜ค๋ฅ˜ ๋ฐœ์ƒํ•  ๊ฒฝ์šฐ

  • error๊ฐ€ ๋ฐœ์ƒํ•œ app๋งŒ ์ง€์ •ํ•ด์„œ python [manage.py](http://manage.py) makemigrations [app_name]
  • error๊ฐ€ ๋ฐœ์ƒํ•œ ์ง€์ ์—์„œ python [manage.py](http://manage.py) migrate --fake-initial ์ˆ˜ํ–‰

ํƒœ๊ทธ:

์นดํ…Œ๊ณ ๋ฆฌ:

์—…๋ฐ์ดํŠธ:

๋Œ“๊ธ€๋‚จ๊ธฐ๊ธฐ