Forums

Blocked sqlite3 database

Hello, I've got this message after trying a migrate statement on e bash console.

django.db.utils.NotSupportedError: Renaming the 'gestion_proclamateur' table while in a transaction is not supported on SQLite because it would break referential integrity. Try adding atomic = False to the Migration class.

I had just before change my model name from "Proclamateur" to "Membre".

And now I can't open my admin page.

I'm a beginner in Django2 Framework.

Please can you tell me how to reinitialise my sqlite3 database connected to this web application.

Notice, I have no need of the datas contained presently in the DB.

Didier Chaplet WEB site name : ypsgv.pythonanywhere.com phone 06 87 69 78 59 mail chaplet.didier@orange.fr nationality : French

Thank you very much for your help.

If you don't need the data, then you can just delete the database file and then run "./manage.py migrate" to re-create it.

Hi! I have the same issue. I don't need the data and had deleted db file. However, I still have the same error. Could anybody help, please?

Have you tried adding atomic = False to the migration class for the migration that is failing?