##// END OF EJS Templates
added some info to corrupted repo message that helps diagnose the cause from log itself.
added some info to corrupted repo message that helps diagnose the cause from log itself.

File last commit:

r1210:3bd2e94c beta
r1265:08ac2c3a beta
Show More
__init__.py
29 lines | 809 B | text/x-python | PythonLexer
added dbmigrate package, added model changes...
r833 """
This module extends SQLAlchemy and provides additional DDL [#]_
support.
.. [#] SQL Data Definition Language
"""
import re
import warnings
import sqlalchemy
from sqlalchemy import __version__ as _sa_version
warnings.simplefilter('always', DeprecationWarning)
pep8ify
r1210 _sa_version = tuple(int(re.match("\d+", x).group(0))
for x in _sa_version.split("."))
added dbmigrate package, added model changes...
r833 SQLA_06 = _sa_version >= (0, 6)
del re
del _sa_version
fixed imports on migrate, added getting current version from database
r835 from rhodecode.lib.dbmigrate.migrate.changeset.schema import *
from rhodecode.lib.dbmigrate.migrate.changeset.constraint import *
added dbmigrate package, added model changes...
r833
pep8ify
r1210 sqlalchemy.schema.Table.__bases__ += (ChangesetTable,)
sqlalchemy.schema.Column.__bases__ += (ChangesetColumn,)
sqlalchemy.schema.Index.__bases__ += (ChangesetIndex,)
added dbmigrate package, added model changes...
r833
pep8ify
r1210 sqlalchemy.schema.DefaultClause.__bases__ += (ChangesetDefaultClause,)