Re: Confused with deleted migrations

2019-06-17 Thread Andréas Kühne
Hi, If you look here: https://docs.djangoproject.com/en/2.2/topics/migrations/ You will see Djangos official take on migrations - you don't need to use version control for handling them (see here for examples of version control: https://en.wikipedia.org/wiki/Version_control). The main thing howe

Re: Confused with deleted migrations

2019-06-16 Thread Mohammad Etemaddar
I got really confused. I don't know how to use version control. I think this might happen again. I need to understand what you did with version control. It would be appreciated if you could post an instructions on here or any blog. Thank you. On Wednesday, June 12, 2019 at 10:57:56 PM UTC+4:30,

Re: Confused with deleted migrations

2019-06-13 Thread Andréas Kühne
Hi Mohammed, You need to make sure that all migrations that you do in development also can be run on the production machine - the migrations should be version controlled and checked in. Then you can run migrate when deploying new code and all migrations should just work. This is how I do it at lea

Confused with deleted migrations

2019-06-12 Thread Mohammad Etemaddar
Hey folks After uploading the app to the server, I got problems by local migrations in development. So deleted the migrations and local sqlite db (Server uses MySQL). After more development, uploaded the whole project to the server and overwrite the files. And typed migrate on server. I don't kn