[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Git][ftp-team/dak][master] update119.py: only drop sequence if it exists



Title: GitLab

Ansgar Burchardt pushed to branch master at Debian FTP Team / dak

Commits:

1 changed file:

Changes:

  • dak/dakdb/update119.py
    ... ... @@ -64,7 +64,7 @@ def do_update(self):
    64 64
                 c.execute("DROP VIEW {0}".format(i))
    
    65 65
     
    
    66 66
             for i in sequences:
    
    67
    -            c.execute("DROP SEQUENCE {0}".format(i))
    
    67
    +            c.execute("DROP SEQUENCE IF EXISTS {0}".format(i))
    
    68 68
     
    
    69 69
             c.execute("UPDATE config SET value = '119' WHERE name = 'db_revision'")
    
    70 70
             self.db.commit()
    


  • Reply to: