equal
deleted
inserted
replaced
49 return res |
49 return res |
50 |
50 |
51 def _set_sql_prefix(prefix): |
51 def _set_sql_prefix(prefix): |
52 """3.2.0 migration function: allow to unset/reset SQL_PREFIX""" |
52 """3.2.0 migration function: allow to unset/reset SQL_PREFIX""" |
53 for module in ('checkintegrity', 'migractions', 'schemahooks', |
53 for module in ('checkintegrity', 'migractions', 'schemahooks', |
54 'sources.rql2sql', 'sources.native'): |
54 'sources.rql2sql', 'sources.native', 'sqlutils'): |
55 try: |
55 try: |
56 sys.modules['cubicweb.server.%s' % module].SQL_PREFIX = prefix |
56 sys.modules['cubicweb.server.%s' % module].SQL_PREFIX = prefix |
57 print 'changed SQL_PREFIX for %s' % module |
57 print 'changed SQL_PREFIX for %s' % module |
58 except KeyError: |
58 except KeyError: |
59 pass |
59 pass |