Edgewall Software

Ticket #905: patch-resmoved-r1040.diff

File patch-resmoved-r1040.diff, 1.1 KB (added by pkou <pkou at ua.fm>, 8 years ago)

Patch for the changes

  • trac/db_default.py

     
    2121 
    2222 
    2323# Database version identifier. Used for automatic upgrades. 
    24 db_version = 7 
     24db_version = 8 
    2525 
    2626def __mkreports(reps): 
    2727    """Utility function used to create report data in same syntax as the 
     
    373373                ('resolution', 'wontfix', 3), 
    374374                ('resolution', 'duplicate', 4), 
    375375                ('resolution', 'worksforme', 5), 
     376                ('resolution', 'moved', 6), 
    376377                ('severity', 'blocker', 1), 
    377378                ('severity', 'critical', 2), 
    378379                ('severity', 'major', 3), 
  • trac/upgrades/db8.py

     
     1sql = """ 
     2-- Add resolution 'moved' 
     3INSERT INTO enum (type, name, value) VALUES ('resolution', 'moved', 6); 
     4""" 
     5 
     6def do_upgrade(env, ver, cursor): 
     7    cursor.execute(sql)