update119.py: only drop sequence if it exists

The sequence didn't exist on at least security-master.d.o.
上级 116b43be
......@@ -64,7 +64,7 @@ def do_update(self):
c.execute("DROP VIEW {0}".format(i))
for i in sequences:
c.execute("DROP SEQUENCE {0}".format(i))
c.execute("DROP SEQUENCE IF EXISTS {0}".format(i))
c.execute("UPDATE config SET value = '119' WHERE name = 'db_revision'")
self.db.commit()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册