changeset 143:5e847f92a010

Delete all permissions in wipe operation.
author Daniele Nicolodi <daniele@grinta.net>
date Thu, 20 Oct 2011 09:29:43 +0200
parents 597c40c5719f
children 495fb7bcf45a
files src/ltpdarepo/admin.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/ltpdarepo/admin.py	Sun Oct 16 23:38:43 2011 +0200
+++ b/src/ltpdarepo/admin.py	Thu Oct 20 09:29:43 2011 +0200
@@ -247,6 +247,8 @@
 
     # delete privileges
     curs.execute("""DELETE FROM mysql.db""")
+    curs.execute("""DELETE FROM mysql.tables_priv""")
+    curs.execute("""DELETE FROM mysql.columns_priv""")
 
     # flush privileges
     curs.execute("""FLUSH PRIVILEGES""")