Commit Graph

781 Commits

Author SHA1 Message Date
Mike Bayer 8a99c2f7b0 - fix up docs and add changelogs for #301 and #302 2015-07-03 13:10:14 -04:00
Mike Bayer ddec68e737 - reorganize API docs and write a new overview 2015-07-02 19:31:20 -04:00
Mike Bayer 4a4e3eb619 - add the autogenerate customize API
- add tests for extension APIs
- add a render helper function
- lots of docs
2015-07-02 17:56:25 -04:00
Mike Bayer 04365a736b - work on improving docs 2015-07-01 17:44:22 -04:00
Mike Bayer 59a4bb719c - add all the batch methods
- add ExecuteSQLOp
- use cls within @classmethod for portability
- more docs
2015-07-01 16:59:54 -04:00
Mike Bayer 1946e80dde fix autogen call 2015-07-01 16:13:08 -04:00
Mike Bayer 2a9652b7b3 - convert Operations over to new system entirely 2015-07-01 16:11:40 -04:00
Mike Bayer 20ee441312 - switch over to the new proxy 2015-07-01 15:55:11 -04:00
Mike Bayer 424daa3163 - start building out plugin system
- docs
- start refactoring new module plugin system
2015-06-29 17:52:03 -04:00
Mike Bayer a0798ca76d - cleanup to autogen api 2015-06-26 18:04:01 -04:00
Mike Bayer 3bb30a4997 - operations is fully onto the dispatch model
- all tests pass
2015-06-26 17:43:56 -04:00
Mike Bayer d2c7b7e1c2 - autogen composition back up 2015-06-26 16:41:09 -04:00
Mike Bayer 4ca06ba41d - modify_col -> alter_column 2015-06-26 15:46:47 -04:00
Mike Bayer 5ec5b92188 - get all autogen_render tests to pass 2015-06-26 14:59:36 -04:00
Mike Bayer 492e4b89d3 - the new compose /render model. tests need to be updated
completely.  One test works, test_render_add_index_schema.
2015-06-25 18:01:25 -04:00
Mike Bayer e22f116d71 - start using "table_name", "constraint_name" etc. for names, add
legacy decorators in case of kw use
2015-06-25 13:57:17 -04:00
Mike Bayer 13666fc0ea move in place 2015-06-25 12:43:08 -04:00
Mike Bayer 3a1526e201 - start thinking about autogen yielding a structure... 2015-06-24 18:33:34 -04:00
Mike Bayer 433ef4d3a6 Merge branch 'ticket_301' into ticket_302
Conflicts:
	alembic/autogenerate/__init__.py
	alembic/command.py
2015-06-24 18:03:12 -04:00
Mike Bayer 94e2e3c6f1 - get the new autogen tests entirely passing and cleaned up 2015-06-24 17:35:07 -04:00
Mike Bayer 69588e424a - continue to scale back how much magic we're building into this
for now
2015-06-24 16:54:27 -04:00
Mike Bayer 9eaa306423 - revert impl back to what it was, we should for now work within
the operations package but not break all of impl
2015-06-23 18:21:24 -04:00
Mike Bayer 00aee9d701 - wip, trying to decide where the ops API and the DDL API should be.
now leaning towards, "very separate"
2015-06-23 17:52:00 -04:00
Mike Bayer 8b8eb7c1b0 - wip
- need to finally clean up autogenerate tests if we're to start
really altering the flow
- think more about the operations we'll want to represent.   These likely
should match most closely to autogenerate's flow; as far as linking to
operations, we should be able to pass them through to an impl.  the actual Operations
methods are factories for the API objects.
2015-06-22 19:30:47 -04:00
Mike Bayer 9ac68646a8 - wip 2015-06-18 20:52:19 -04:00
Mike Bayer 89a6fa3c14 - factor schema object creator functions into a separate object 2015-06-18 17:11:49 -04:00
Mike Bayer 0c71f985e4 - refactor most files into packages. provide a degree of
backwards compat for major import targets.  command and config
are too front-facing for a move like this so leave them
as is.  first part of #302
2015-06-11 18:58:47 -04:00
Mike Bayer 12ab8bd6f3 - get all tests passing on new architecture 2015-06-11 17:26:32 -04:00
Mike Bayer 7491dd7850 - initial sketch of extension 2015-06-11 15:24:22 -04:00
Mike Bayer 541cbd26b5 - The :meth:`.MigrationContext.stamp` method, added as part of the
versioning refactor in 0.7 as a more granular version of
:func:`.command.stamp`, now includes the "create the alembic_version
table if not present" step in the same way as the command version,
which was previously omitted.
fixes #300
2015-06-09 11:40:34 -04:00
Mike Bayer 229f86723b - turn on the mssql legacy_schema_aliasing flag to remove
warnings
2015-05-26 10:55:36 -04:00
Mike Bayer 29b301a7ec - Fixed bug where foreign key options including "onupdate",
"ondelete" would not render within the ``op.create_foreign_key()``
directive, even though they render within a full
``ForeignKeyConstraint`` directive.
fixes #298
2015-05-18 20:21:49 -04:00
Mike Bayer 87629c53ac - add test for FKC with multiple kwargs, reference #92 2015-05-18 19:48:09 -04:00
Mike Bayer 6ae4196acc 0.7.6 2015-05-05 17:02:26 -04:00
Mike Bayer 0ea37679dd Merged in jdanjou/alembic/jd/typo-doc-comparator (pull request #44)
Fix typo in autogenerate documentation
2015-05-04 12:57:13 -04:00
Julien Danjou 239cf80306 Fix typo in autogenerate documentation 2015-05-04 17:57:42 +02:00
Mike Bayer c75be37640 - Fixed bug where the case of multiple mergepoints that all
have the identical set of ancestor revisions would fail to be
upgradable, producing an assertion failure.   Merge points were
previously assumed to always require at least an UPDATE in
alembic_revision from one of the previous revs to the new one,
however in this case, if one of the mergepoints has already
been reached, the remaining mergepoints have no row to UPDATE therefore
they must do an INSERT of their target version.
fixes #297
2015-05-03 20:17:19 -04:00
Mike Bayer b35dbff602 - add tox targets for 3.4 2015-05-01 14:54:44 -04:00
Mike Bayer dabc7f0932 - Added support for type comparison functions to be not just per
environment, but also present on the custom types themselves, by
supplying a method ``compare_against_backend``.
Added a new documentation section :ref:`compare_types` describing
type comparison fully.
fixes #296
2015-04-30 11:33:58 -04:00
Mike Bayer a192c345fc Merged in rtaranu/alembic (pull request #43)
- fixed spelling mistake in docs
2015-04-21 13:04:50 -04:00
Raul Taranu 7f21db8618 - fixed spelling mistake in docs 2015-04-21 13:22:40 +00:00
Mike Bayer 0e1c098989 - Added a new option
:paramref:`.EnvironmentContext.configure.literal_binds`, which
will pass the ``literal_binds`` flag into the compilation of SQL
constructs when using "offline" mode.  This has the effect that
SQL objects like inserts, updates, deletes as well as textual
statements sent using ``text()`` will be compiled such that the dialect
will attempt to render literal values "inline" automatically.
Only a subset of types is typically supported; the
:meth:`.Operations.inline_literal` construct remains as the construct
used to force a specific literal representation of a value.
The :paramref:`.EnvironmentContext.configure.literal_binds` flag
is added to the "offline" section of the ``env.py`` files generated
in new environments.
fixes #255
- enhance the op_fixture as well as MigrationContext._stdout_connection()
 so that it uses the real DefaultImpl
and MigrationContext fully in tests.
2015-04-07 12:41:46 -04:00
Mike Bayer 54e4f58d1f - repair name of starting_rev argument, fixes #290 2015-03-29 09:33:27 -04:00
Mike Bayer 73650a8f19 - dont rely on inpsect import, not in SQLA 0.7 2015-03-28 12:51:45 -04:00
Mike Bayer d5198d0d2b - don't use op.f(), only works with later SQLA versions 2015-03-28 11:56:08 -04:00
Mike Bayer f02f211b93 - Fully implemented the
:paramref:`~.Operations.batch_alter_table.copy_from` parameter for
batch mode, which previously was not functioning.  This allows
"batch mode" to be usable in conjunction with ``--sql``.
fixes #289
- sqlite dialect checks for "create_index" and "drop_index" as exceptions
for "recreate" in batch mode, the same way as "add_column", so that
unnecessary table recreates don't emit for index-only operations
2015-03-27 18:55:00 -04:00
Mike Bayer 9545e87008 - next version 2015-03-27 18:52:20 -04:00
Mike Bayer 2af6e438c9 - Repaired support for the :meth:`.BatchOperations.create_index`
directive, which was mis-named internally such that the operation
within a batch context could not proceed.
fixes #287
2015-03-27 15:15:55 -04:00
Mike Bayer c3e39ec4bf - didn't name the internal number correctly, stil
don't have this right.  up to post2
2015-03-20 15:29:39 -04:00
Mike Bayer e1dc713aa6 - 0.7.5.post1 due to pypi deletion issue 2015-03-20 15:20:10 -04:00