runbot/runbot_merge/__init__.py

11 lines
364 B
Python
Raw Normal View History

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