Deleted migration files- how to makemigrations without losing data
<p>I changed a field on a model class (which has no classes point <em>to</em> it, only one foreign key pointing out of it). Somehow, this stuffed up my migrations and it keeps saying "django.db.migrations.graph.NodeNotFoundError:" looking for migration files that do not exist.</p>

<p>I accidentally deleted several files in my 'migrations' folder. </p>

<p>My database contains a lot of data, and I do not want to break it.</p>

<p>Will I lose any data if I:</p>

<ol>
<li><p>Remove the table that caused the problem in the first place (psql, \d, DROP TABLE tablename)</p></li>
<li><p><strong>delete all my migration files</strong></p></li>
<li><p>Re run the migration from the start?</p>

<p>./manage.py makemigrations</p>

<p>./manage.py migrate</p></li>
</ol>

<p>Can anyone recommend another way of fixing this?</p>

<p>Here is the traceback:
<a href="http://dpaste.com/0Y1YDXS" rel="nofollow">http://dpaste.com/0Y1YDXS</a></p>