Thursday, June 3, 2021

Makemigrations/migrate in existing database

Hello Team
Hope all are doing great

I have a database in microsoft sql server. I created tables and views in it.

I ran py manage.py inspetdb  > Models.py and populated my models.py file . I also don't want my model to alter my database. I just want it for data retrieval.

Should I definitely run migrate/makemigrations?

After inspectdb should i apply makemigrations on my app or is just migrate enough? And also what are the points to remember while using inspectdb on an existing database.

Thanks in advance

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/908ff564-adca-4b64-9ec4-e347a3818efbn%40googlegroups.com.

No comments:

Post a Comment