I recently deleted my db.sqlite3
file because some data had become corrupted. I though that at the next run of python manage.py migrate
it would have simply been recreated from stratch. Instead, Django is contuining to work off the old db.sqlite3
despite the file not existing anymore - I assume it's somehow cached?
Specifically:
python manage.py migrate
works fine but it doesn't create a newdb.sqlite3
file.- There is no
db.sqlite3
file anymore in my root. - I already manually deleted all migrations.
- The app continues to work okay with all the previous data still there (e.g., users).
- In case it's useful, I'm coding on Replit.