so I have a django app using MySQL database, the client asked for some database records deletions, and one of our developers did the deletions manually from the MySQL console, now I'm trying to recover it to the previous state, I don't have any backups, I read that django does transactions automatically by default,so I want to know how can I rollback to one of these transactions.
Asked
Active
Viewed 201 times
0
-
There is a setting in Django to wrap views in transactions. By default that is turned off. But even if it is on, if the view ends, then the changes are commited. – Willem Van Onsem Oct 13 '19 at 10:07
-
Furthermore if the deletions are done manually, it is likely these are not wrapped in a transaction in the first place, since otherwise, you would not see the changes in the app itself. – Willem Van Onsem Oct 13 '19 at 10:16
-
@WillemVanOnsem so i can't rollback this disaster? – wassim chaguetmi Oct 13 '19 at 10:33
-
1I'm afraid this is not possible no. – Willem Van Onsem Oct 13 '19 at 10:37