0.9.6
Released: October 13, 2017
-
[bug] [commands] Fixed a few Python3.6 deprecation warnings by replacing
StopIteration
withreturn
, as well as usinggetfullargspec()
instead of
getargspec()
under Python 3.References: #458
-
[bug] [commands] An addition to #441 fixed in 0.9.5, we forgot to also filter
for the+
sign in migration names which also breaks due to the relative
migrations feature.References: #441
-
[autogenerate] [bug] Fixed bug expanding upon the fix for
#85 which adds the correct module import to the
"inner" type for anARRAY
type, the fix now accommodates for the
genericsqlalchemy.types.ARRAY
type added in SQLAlchemy 1.1,
rendering the inner type correctly regardless of whether or not the
Postgresql dialect is present.References: #442
-
[bug] [mysql] Fixed bug where server default comparison of CURRENT_TIMESTAMP would fail
on MariaDB 10.2 due to a change in how the function is
represented by the database during reflection.References: #455
-
[autogenerate] [bug] Fixed bug where comparison of
Numeric
types would produce
a difference if the Python-sideNumeric
inadvertently specified
a non-None "scale" with a "precision" of None, even though thisNumeric
type will pass over the "scale" argument when rendering. Pull request
courtesy Ivan Mmelnychuk. -
[commands] [feature] The
alembic history
command will now make use of the revision
environmentenv.py
unconditionally if therevision_environment
configuration flag is set to True. Previously, the environment would
only be invoked if the history specification were against a database-stored
revision token.References: #447
-
[batch] [bug] The name of the temporary table in batch mode is now generated
off of the original table name itself, to avoid conflicts for the
unusual case of multiple batch operations running against the same
database schema at the same time.References: #457
-
[autogenerate] [bug] A
ForeignKeyConstraint
can now render correctly if the
link_to_name
flag is set, as it will not attempt to resolve the name
from a "key" in this case. Additionally, the constraint will render
as-is even if the remote column name isn't present on the referenced
remote table.References: #456
-
[bug] [py3k] [runtime] Reworked "sourceless" system to be fully capable of handling any
combination of: Python2/3x, pep3149 or not, PYTHONOPTIMIZE or not,
for locating and loading both env.py files as well as versioning files.
This includes: locating files inside of__pycache__
as well as listing
out version files that might be only inversions/__pycache__
, deduplicating
version files that may be inversions/__pycache__
andversions/
at the same time, correctly looking for .pyc or .pyo files based on
if pep488 is present or not. The latest Python3x deprecation warnings
involving importlib are also corrected.References: #449