diff --git a/docs/changelog.rst b/docs/changelog.rst index 8b1e31a..f07cadb 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -20,11 +20,12 @@ Fixed bugs - fixed case sensitivity in setup.py dependencies - moved :mod:`migrate.changeset.exceptions` and :mod:`migrate.versioning.exceptions` to :mod:`migrate.exceptions` -- cleared up test output and improved testing of deprecation warnings. +- cleared up test output and improved testing of deprecation warnings. - some documentation fixes -- fixed bug with column dropping in sqlite (issue 96) +- #107: fixed syntax error in genmodel.py +- #96: fixed bug with column dropping in sqlite +- #94: fixed bug that prevented non-unique indexes being created - fixed bug with column dropping involving foreign keys -- fixed bug that prevented non-unique indexes being created (issue 94) - fixed bug when dropping columns with unique constraints in sqlite - rewrite of the schema diff internals, now supporting column differences in additon to missing columns and tables. diff --git a/migrate/versioning/genmodel.py b/migrate/versioning/genmodel.py index 5a43437..b3449b6 100644 --- a/migrate/versioning/genmodel.py +++ b/migrate/versioning/genmodel.py @@ -170,11 +170,11 @@ class ModelGenerator(object): modelTable, col.name)) for modelCol, databaseCol, modelDecl, databaseDecl in diffDecl: upgradeCommands.append( - 'assert False, "Can\'t alter columns: %s:%s=>%s"', - modelTable, modelCol.name, databaseCol.name) + 'assert False, "Can\'t alter columns: %s:%s=>%s"' % ( + modelTable, modelCol.name, databaseCol.name)) downgradeCommands.append( - 'assert False, "Can\'t alter columns: %s:%s=>%s"', - modelTable, modelCol.name, databaseCol.name) + 'assert False, "Can\'t alter columns: %s:%s=>%s"' % ( + modelTable, modelCol.name, databaseCol.name)) pre_command = ' meta.bind = migrate_engine' return (