[ad_1]
I have a Django application and I’m using MariaDB as the database. Both of them have been deployed to a namespace on kubernetes. Now I want to add an additional field, so I made changes in the models.py file in the django app. These changes were made locally – I pulled the code from GIT and just made the changes locally. Normally to apply the changes, I have to run manage.py makemigrations
and manage.py migrate
and all the changes would’ve been reflected on to the DB if the DB was present locally.
So now my questions are
- How can I apply the changes to MariaDb that is there on Kubernetes ?
- Will running
manage.py makemigrations
andmanage.py migrate
locally and redeploying the django app to kubernetes solve this issue ?
[ad_2]