summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* wipticket_318Mike Bayer2015-08-204-36/+116
|
* - Implemented support for autogenerate detection of changes in theMike Bayer2015-08-198-17/+435
| | | | | | | | | | | | | ``ondelete``, ``onupdate``, ``initially`` and ``deferrable`` attributes of :class:`.ForeignKeyConstraint` objects on SQLAlchemy backends that support these on reflection (as of SQLAlchemy 1.0.8 currently Postgresql for all four, MySQL for ``ondelete`` and ``onupdate`` only). A constraint object that modifies these values will be reported as a "diff" and come out as a drop/create of the constraint with the modified values. The fields are ignored for backends which don't reflect these attributes (as of SQLA 1.0.8 this includes SQLite, Oracle, SQL Server, others). fixes #317
* - bump version numMike Bayer2015-08-181-1/+1
|
* - updates for 1.1Mike Bayer2015-08-181-5/+15
|
* Merge pull request #18 from graingert/patch-1mike bayer2015-08-141-1/+1
|\ | | | | The name has changed to bdist_wheel
| * The name has changed to bdist_wheelThomas Grainger2015-08-141-1/+1
|/ | | ...to fit with other setuptools configs
* 0.8.0rel_0_8_0Mike Bayer2015-08-121-0/+1
|
* - Fixed bug in batch mode where the ``batch_op.create_foreign_key()``Mike Bayer2015-08-124-9/+210
| | | | | | directive would be incorrectly rendered with the source table and schema names in the argument list. fixes #315
* - fix this for 079Mike Bayer2015-08-081-0/+1
|
* - ensure that all ops have full backwards/forwards maintenance ofMike Bayer2015-08-074-10/+169
| | | | | | the original object passed in from autogenerate. In particular this ensures that the diff structure from compare_metadata is fully backwards compatible with no chance of synthesized objects.
* - add a helper object for autogen rewriting called Rewriter.Mike Bayer2015-08-076-8/+378
| | | | | this provides for operation-specific handler functions. docs are based on the example requested in references #313.
* - Fixed bug where in the erroneous case that alembic_version containsMike Bayer2015-08-036-2/+61
| | | | | | | | duplicate revisions, some commands would fail to process the version history correctly and end up with a KeyError. The fix allows the versioning logic to proceed, however a clear error is emitted later when attempting to update the alembic_version table. fixes #314
* - changelog for pullrequest bitbucket:46; "alembic edit" commandMike Bayer2015-07-305-18/+91
| | | | | | edits migration files using $EDITOR - alter the edit command so that it accepts an argument in the same way as ``alembic show``.
* Merge branch 'edit-latest' of https://bitbucket.org/exhuma/alembic into pr46Mike Bayer2015-07-303-1/+49
|\
| * python-editor 0.3 fixed a bug with using nano.edit-latestMichel Albert2015-07-171-1/+1
| |
| * Reusing existing compat. code from alembic.testing.Michel Albert2015-07-161-8/+3
| |
| * Replaced hand-crafted code with python-editor.Michel Albert2015-07-167-120/+17
| |
| * Removed arguments for "--edit" command.Michel Albert2015-07-161-7/+0
| |
| * New CLI command: "edit" - Edits the latest rev.Michel Albert2015-07-156-0/+163
| | | | | | | | Running ``alembic edit`` will open the latest revision in a text-editor.
* | - fix syntax here for py3kMike Bayer2015-07-291-2/+2
| |
* | - Added new multiple-capable argument ``--depends-on`` to theMike Bayer2015-07-2811-24/+244
| | | | | | | | | | | | | | | | | | | | | | ``alembic revision`` command, allowing ``depends_on`` to be established at the command line level rather than having to edit the file after the fact. ``depends_on`` identifiers may also be specified as branch names at the command line or directly within the migration file. The values may be specified as partial revision numbers from the command line which will be resolved to full revision numbers in the output file. fixes #311
* | - add new recipe for "replaceable objects".Mike Bayer2015-07-271-0/+513
| | | | | | | | references #173, references #119
* | 0.7.7Mike Bayer2015-07-221-0/+1
| | | | | | | | (cherry picked from commit b8c8dc581fcdef6490a5f082d1adc0f9f50f279d)
* | - Fixed critical issue where a complex series of branches/merges wouldMike Bayer2015-07-224-3/+224
| | | | | | | | | | | | | | bog down the iteration algorithm working over redundant nodes for millions of cycles. An internal adjustment has been made so that duplicate nodes are skipped within this iteration. fixes #310
* | - since the section titles in api are bound to be misleading,Mike Bayer2015-07-178-10/+52
| | | | | | | | | | put notes at the top of most of them - consolidate EnvironmentContext / MigrationContext
* | - document all the 0.8 positional name changesMike Bayer2015-07-172-8/+146
| | | | | | | | - ensure remaining name->constraint_name / table_name
* | - ensure DropIndex and other ops return the full object it receivedMike Bayer2015-07-172-1/+64
| | | | | | | | | | from autogenerate; in the immediate sense this should help with modelsmigrationsync tests
* | - this test relies upon having the PG dialect presentMike Bayer2015-07-171-2/+1
| |
* | - rework all of autogenerate to build directly on alembic.operations.opsMike Bayer2015-07-1619-852/+1263
| | | | | | | | | | | | | | | | | | | | | | | | | | objects; the "diffs" is now a legacy system that is exported from the ops. A new model of comparison/rendering/ upgrade/downgrade composition that is cleaner and much more extensible is introduced. - autogenerate is now extensible as far as database objects compared and rendered into scripts; any new operation directive can also be registered into a series of hooks that allow custom database/model comparison functions to run as well as to render new operation directives into autogenerate scripts. - write all new docs for the new system fixes #306
* | - The default test runner via "python setup.py test" is now py.test.Mike Bayer2015-07-162-11/+30
|/ | | | nose still works via run_tests.py.
* - some additional namesMike Bayer2015-07-143-3/+30
| | | | - warn for name changes
* - handle missing arg more clearlyMike Bayer2015-07-143-2/+40
| | | | - add missing translate for create_pk
* - move the "legacy names" system into where we create the module proxy.Mike Bayer2015-07-144-48/+62
| | | | | | | | | This is so that we can do a total open ended "*args, **kw" style translation for the vast majority of use cases that are using alembic.op, without impacting docstrings for the Operations class. There is a risk here of impacting an application that is using Operations directly instantitaed while using old names. We may still have to accommodate that somehow.
* - Implemented support for :meth:`.BatchOperations.create_primary_key`Mike Bayer2015-07-038-10/+150
| | | | | | | and :meth:`.BatchOperations.create_check_constraint`. fixes #305 - table keyword arguments are copied from the original reflected table, such as the "mysql_engine" keyword argument.
* Index didn't have a quote parameter until 0.9, when the quote param isMike Bayer2015-07-031-7/+5
| | | | | portable to the name itself. so we don't need to handle this arg explicitly.
* - try to explain this betterMike Bayer2015-07-032-13/+29
|
* - add the .info dictionary, references #302Mike Bayer2015-07-031-0/+8
|
* - squash merge of ticket_302 branchMike Bayer2015-07-0373-3300/+6865
| | | | | | | | | | | - The internal system for Alembic operations has been reworked to now build upon an extensible system of operation objects. New operations can be added to the ``op.`` namespace, including that they are available in custom autogenerate schemes. fixes #302 - The internal system for autogenerate been reworked to build upon the extensible system of operation objects present in #302. A new customization hook process_revision_directives is added to allow manipulation of the autogen stream. Fixes #301
* - add a changelog for the legacy_schema_aliasing warning issue,Mike Bayer2015-06-261-0/+7
| | | | the fix was committed in 229f8672.
* - add clarification that this tutorial is against the generic templateMike Bayer2015-06-171-1/+10
|
* - The :meth:`.MigrationContext.stamp` method, added as part of theMike Bayer2015-06-093-1/+30
| | | | | | | | 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
* - turn on the mssql legacy_schema_aliasing flag to removeMike Bayer2015-05-263-1/+8
| | | | warnings
* - Fixed bug where foreign key options including "onupdate",Mike Bayer2015-05-184-13/+106
| | | | | | | "ondelete" would not render within the ``op.create_foreign_key()`` directive, even though they render within a full ``ForeignKeyConstraint`` directive. fixes #298
* - add test for FKC with multiple kwargs, reference #92Mike Bayer2015-05-181-0/+15
|
* 0.7.6rel_0_7_6Mike Bayer2015-05-051-0/+1
|
* Merged in jdanjou/alembic/jd/typo-doc-comparator (pull request #44)Mike Bayer2015-05-041-1/+1
|\ | | | | | | Fix typo in autogenerate documentation
| * Fix typo in autogenerate documentationJulien Danjou2015-05-041-1/+1
|/
* - Fixed bug where the case of multiple mergepoints that allMike Bayer2015-05-033-7/+170
| | | | | | | | | | | 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
* - add tox targets for 3.4Mike Bayer2015-05-011-1/+7
|
* - Added support for type comparison functions to be not just perMike Bayer2015-04-305-33/+124
| | | | | | | | 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