<p>I have deployed my app to Azure with Kubernetes. I have separate pods for front end, back end and database. I encountered problems when one of my database fields changed from <code>id</code> to <code>userId</code>. I have tried to update this change to my deployment database but without any luck. I logged into my back end pod and removed the existing migration file and run <code>python manage.py makemigrations</code> &amp; <code>python manage.py migrate</code>. After these I checked that everything was ok in the migration file. After this I don't know what to do. Do I need to remove the database pod and create it again? Or how do I update the database inside the pod?</p>

lr_optim
<p>id -&gt; userId change is a DDL change for your DB. I suggest that you &quot;exec&quot; into your DB pod and start your DB shell.</p>
<pre><code>kubectl exec -it mysql-pod-name bash
</code></pre>
<p>Then you should be able to execute your DDL statement. MySql example:</p>
<pre><code>ALTER TABLE tableName
RENAME COLUMN id TO userId;
</code></pre>
