adamspd / django-appointment

A Django app for managing appointment scheduling with ease and flexibility.
Apache License 2.0
89 stars 30 forks source link

Issue with Missing Model Migrations in 'appointment' Application #132

Closed OscarGonzalez97 closed 4 months ago

OscarGonzalez97 commented 4 months ago

Describe the bug When attempting to add the application to the project, the corresponding models are not being created.

To Reproduce I follow this instructions.

Expected behavior After adding the 'appointment' application and running migrations, the corresponding models should be created successfully.

Screenshots I follow all the steps and my project doesn't run migrations of 'appointment' application:

image

And It's installed correctly

image

Desktop (please complete the following information):

Additional context The 'appointment' application is installed correctly, but the models are not being created.

Possible Solution

-

Can you fix the bug?

adamspd commented 4 months ago

Hi @OscarGonzalez97, I just read the part of the documentation talking about this and I noted that I didn't say to run the command python manage.py makemigrations and I should've since the migrations are not included in the releases because by doing so, it would impact your database if the migrations I create on my machine are corrupted.

Try to run the following command and I think it should solve the problem for you :

python manage.py makemigrations appointment

This will create the migration files specific to django-appointment and then run

python manage.py migrate

From there your issue should be solved.

Thanks for pointing that out, I will change to documentation to add the command. Adams

adamspd commented 4 months ago

If this solves your problem, let me know and close the issue afterwards. Thank you !

OscarGonzalez97 commented 4 months ago

Excellent I ran that command and migrations were created 👍 Thank you!