Skip to content

Latest commit

 

History

History
executable file
·
24 lines (18 loc) · 520 Bytes

File metadata and controls

executable file
·
24 lines (18 loc) · 520 Bytes

Home/ database

Migrations

To generate a new update on the mysql, when you have your model updated, you should run:

> python manage.py makemigrations api

You will see that it will make a file in migrations directory, then for generating the new migration, you can just apply it by running:

> python manage.py migrate api

Check the database. You should see that a table with the dummy model has been generated successfully.

> make database
> show tables;