equal
deleted
inserted
replaced
250 if rschema.final: |
250 if rschema.final: |
251 return |
251 return |
252 session = self.session |
252 session = self.session |
253 if 'fulltext_container' in self.values: |
253 if 'fulltext_container' in self.values: |
254 for subjtype, objtype in rschema.rdefs: |
254 for subjtype, objtype in rschema.rdefs: |
255 hook.set_operation(self._cw, 'fti_update_etypes', subjtype, |
255 hook.set_operation(session, 'fti_update_etypes', subjtype, |
256 UpdateFTIndexOp) |
256 UpdateFTIndexOp) |
257 hook.set_operation(self._cw, 'fti_update_etypes', objtype, |
257 hook.set_operation(session, 'fti_update_etypes', objtype, |
258 UpdateFTIndexOp) |
258 UpdateFTIndexOp) |
259 if not 'inlined' in self.values: |
259 if not 'inlined' in self.values: |
260 return # nothing to do |
260 return # nothing to do |
261 inlined = self.values['inlined'] |
261 inlined = self.values['inlined'] |
262 # check in-lining is necessary / possible |
262 # check in-lining is necessary / possible |
520 self.session.system_sql) |
520 self.session.system_sql) |
521 else: |
521 else: |
522 sql = adbh.sql_set_null_allowed(table, column, coltype, notnull) |
522 sql = adbh.sql_set_null_allowed(table, column, coltype, notnull) |
523 session.system_sql(sql) |
523 session.system_sql(sql) |
524 if 'fulltextindexed' in self.values: |
524 if 'fulltextindexed' in self.values: |
525 hook.set_operation(self._cw, 'fti_update_etypes', etype, |
525 hook.set_operation(session, 'fti_update_etypes', etype, |
526 UpdateFTIndexOp) |
526 UpdateFTIndexOp) |
527 |
527 |
528 |
528 |
529 class SourceDbCWConstraintAdd(hook.Operation): |
529 class SourceDbCWConstraintAdd(hook.Operation): |
530 """actually update constraint of a relation definition""" |
530 """actually update constraint of a relation definition""" |