runbot/runbot_merge/__init__.py

11 lines
351 B
Python
Raw Permalink Normal View History

from . import models, controllers
from .sentry import enable_sentry
def _check_citext(cr):
cr.execute("select 1 from pg_extension where extname = 'citext'")
if not cr.rowcount:
try:
cr.execute('create extension citext')
except Exception:
raise AssertionError("runbot_merge needs the citext extension")