Commit 2864580f authored by inkhey's avatar inkhey

drop if exists

parent 5723ef68
......@@ -268,7 +268,7 @@ class sqlGit(object):
listTable = ('author', 'commits', 'file', 'link_author_commits',
'link_file_commits')
for table in listTable:
c.execute('DROP TABLE ' + table + ' ;')
c.execute('DROP TABLE IF EXISTS ' + table + ' ;')
self.conn.commit()
def dropView(self):
......@@ -277,7 +277,7 @@ class sqlGit(object):
c = self.conn.cursor()
listTable = ('nodes','edges')
for table in listTable:
c.execute('DROP VIEW ' + table + ' ;')
c.execute('DROP VIEW IF EXISTS ' + table + ' ;')
self.conn.commit()
# autotest
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment