- os.path.join(ml_dir, 'data', 'genres_nonfb2.glst'))
- sqlhub.processConnection.query("VACUUM %s" % Genre.sqlmeta.table)
+ os.path.join(ml_dir, 'glst', 'genres_nonfb2.glst'))
+ connection = sqlhub.processConnection
+ if connection.dbName in ('postgres', 'sqlite'):
+ connection.query("VACUUM %s" % Genre.sqlmeta.table)