fixes #107
This commit is contained in:
@@ -22,9 +22,10 @@ Fixed bugs
|
||||
to :mod:`migrate.exceptions`
|
||||
- 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.
|
||||
|
||||
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user