2
---------------------------
6
.. warning:: **Backward incompatible changes**:
8
- :func:`api.test` and schema comparison functions now all accept `url` as first parameter and `repository` as second.
9
- python upgrade/downgrade scripts do not import `migrate_engine` magically, but recieve engine as the only parameter to function (eg. ``def upgrade(migrate_engine):``)
10
- :meth:`Column.alter <migrate.changeset.schema.ChangesetColumn.alter>` does not accept `current_name` anymore, it extracts name from the old column.
15
- added support for :ref:`firebird <firebird-d>`
16
- added option to define custom templates through option ``--templates_path`` and ``--templates_theme``,
17
read more in :ref:`tutorial section <custom-templates>`
18
- use Python logging for output, can be shut down by passing ``--disable_logging`` to :func:`migrate.versioning.shell.main`
19
- deprecated `alter_column` comparing of columns. Just use explicit parameter change.
20
- added support for SQLAlchemy 0.6.x by Michael Bayer
21
- Constraint classes have `cascade=True` keyword argument to issue ``DROP CASCADE`` where supported
22
- added :class:`~migrate.changeset.constraint.UniqueConstraint`/:class:`~migrate.changeset.constraint.CheckConstraint`
23
and corresponding create/drop methods
24
- API `url` parameter can also be an :class:`Engine` instance (this usage is discouraged though sometimes necessary)
25
- code coverage is up to 80% with more than 100 tests
26
- alter, create, drop column / rename table / rename index constructs now accept `alter_metadata` parameter. If True, it will modify Column/Table objects according to changes. Otherwise, everything will be untouched.
27
- added `populate_default` bool argument to :meth:`Column.create <migrate.changeset.schema.ChangesetColumn.create>` which issues corresponding UPDATE statements to set defaults after column creation
28
- :meth:`Column.create <migrate.changeset.schema.ChangesetColumn.create>` accepts `primary_key_name`, `unique_name` and `index_name` as string value which is used as contraint name when adding a column
33
- ORM methods now accept `connection` parameter commonly used for transactions
34
- `server_defaults` passed to :meth:`Column.create <migrate.changeset.schema.ChangesetColumn.create>`
35
are now issued correctly
36
- use SQLAlchemy quoting system to avoid name conflicts (for issue 32)
37
- complete refactoring of :class:`~migrate.changeset.schema.ColumnDelta` (fixes issue 23)
38
- partial refactoring of :mod:`changeset` package
39
- fixed bug when :meth:`Column.alter <migrate.changeset.schema.ChangesetColumn.alter>`\(server_default='string') was not properly set
40
- constraints passed to :meth:`Column.create <migrate.changeset.schema.ChangesetColumn.create>` are correctly interpreted (``ALTER TABLE ADD CONSTRAINT`` is issued after ``ATLER TABLE ADD COLUMN``)
41
- script names don't break with dot in the name
46
- :ref:`dialect support <dialect-support>` table was added to documentation
47
- majoy update to documentation