##// END OF EJS Templates
fleshing out the Upgrade doc, and modified the references to Cheeseshop in the Install doc
fleshing out the Upgrade doc, and modified the references to Cheeseshop in the Install doc

File last commit:

r2000:72c525a7 beta
r2806:008d9c6f beta
Show More
postgres.py
43 lines | 1.1 KiB | text/x-python | PythonLexer
added dbmigrate package, added model changes...
r833 """
`PostgreSQL`_ database specific implementations of changeset classes.
.. _`PostgreSQL`: http://www.postgresql.org/
"""
added migrations from 1.2.X to 1.3
r2000 from rhodecode.lib.dbmigrate.migrate.changeset import ansisql
added dbmigrate package, added model changes...
r833
added migrations from 1.2.X to 1.3
r2000 from sqlalchemy.databases import postgresql as sa_base
PGSchemaGenerator = sa_base.PGDDLCompiler
added dbmigrate package, added model changes...
r833
class PGColumnGenerator(PGSchemaGenerator, ansisql.ANSIColumnGenerator):
"""PostgreSQL column generator implementation."""
pass
class PGColumnDropper(ansisql.ANSIColumnDropper):
"""PostgreSQL column dropper implementation."""
pass
class PGSchemaChanger(ansisql.ANSISchemaChanger):
"""PostgreSQL schema changer implementation."""
pass
class PGConstraintGenerator(ansisql.ANSIConstraintGenerator):
"""PostgreSQL constraint generator implementation."""
pass
class PGConstraintDropper(ansisql.ANSIConstraintDropper):
"""PostgreSQL constaint dropper implementation."""
pass
class PGDialect(ansisql.ANSIDialect):
columngenerator = PGColumnGenerator
columndropper = PGColumnDropper
schemachanger = PGSchemaChanger
constraintgenerator = PGConstraintGenerator
constraintdropper = PGConstraintDropper