migration/1.0.4_Any.py
author Julien Cristau <julien.cristau@logilab.fr>
Mon, 07 Jul 2014 18:48:43 +0200
changeset 1541 a48ad903f660
parent 80 8abb3d6ee0a1
permissions -rw-r--r--
[narval] remove broken test_print_log method lgp says "a build log is available at $path" before that's true (it only copies it there afterwards), so we always said "$path not found".

rql('DELETE CheckResultLog X')
checkpoint()
drop_attribute('CheckResultLog', 'severity')
add_attribute('CheckResultLog', 'severity')

sql('''CREATE FUNCTION severity_sort_value(text) RETURNS int
    AS 'return {"DEBUG": 0, "INFO": 10, "WARNING": 20, "ERROR": 30, "FATAL": 40}[args[0]]'
    LANGUAGE plpythonu;
''')
checkpoint()

synchronize_eschema('CheckResultLog')
synchronize_eschema('CheckResult')