Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

do i will lose data in database if i delete migration files in django? [closed]

I have Django Project and I want to add some table in my database but I'm not able to add it because I have some Problem in Migrations files , Do I will lose my data in database if I removed all migrations files

like image 906
Tayeb Tayebo Avatar asked Sep 02 '25 04:09

Tayeb Tayebo


1 Answers

Migrations are Django’s way of propagating changes you make to your models (adding a field, deleting a model, etc.) into your database schema.

So, deleting migration files does not affect the data in the database. For more information look into django's migrations.

like image 72
dinolin Avatar answered Sep 05 '25 02:09

dinolin