# HG changeset patch # User Sylvain Thénault # Date 1308759824 -7200 # Node ID 183a61d1bab97ce253e2873f7cf3529c7e1dafbe # Parent 465009397d91972416f8eb0646f0c50674a486df [3.10] fix typo and error for pre 3.10 migration w/ postgres: we *must* call init_creating else the fti isn't correctly initialized, which may lead to silently rollbacked transaction diff -r 465009397d91 -r 183a61d1bab9 misc/migration/3.10.9_Any.py --- a/misc/migration/3.10.9_Any.py Wed Jun 22 16:34:27 2011 +0200 +++ b/misc/migration/3.10.9_Any.py Wed Jun 22 18:23:44 2011 +0200 @@ -11,7 +11,7 @@ from logilab.common.shellutils import progress from cubicweb.server.session import hooks_control rset = rql('Any X, XC WHERE X cwuri XC, X cwuri ~= "%/eid/%"') - title = "%i entites to fix" % len(rset) + title = "%i entities to fix" % len(rset) nbops = rset.rowcount enabled = interactive_mode with progress(title=title, nbops=nbops, size=30, enabled=enabled) as pb: diff -r 465009397d91 -r 183a61d1bab9 server/repository.py --- a/server/repository.py Wed Jun 22 16:34:27 2011 +0200 +++ b/server/repository.py Wed Jun 22 18:23:44 2011 +0200 @@ -231,6 +231,7 @@ self.sources_by_eid = {} if self.config.quick_start \ or not 'CWSource' in self.schema: # # 3.10 migration + self.system_source.init_creating() return session = self.internal_session() try: