手贱!使用django,在数据库直接删除了表

莫名其妙的错误。

删除了migreation文件,并且更换了数据库。

1.直接makemigrations + migrate    error: no change ??  WTF

2.makemigrations app   + migrate app   循环完成      no error, but can't use this project.    WTF  +1

3.makemigrations app1 + makemigrations app2 ...   migrate         oh, success.      what's happend ?

猜你喜欢

转载自www.cnblogs.com/tangpg/p/9298041.html