Commit Graph

556 Commits

Author SHA1 Message Date
Mike Bayer 10e9b2e1ea changelog 2014-09-13 17:10:34 -04:00
Mike Bayer ff93b35a71 - bootstrap support
- some workarounds to get 0.8 mostly working
2014-09-13 17:08:22 -04:00
Mike Bayer fa08036725 - finish up 2014-09-13 16:53:57 -04:00
Mike Bayer f41a1cfcea postgresql 2014-09-13 16:17:09 -04:00
Mike Bayer e93e07bff5 dev 2014-09-13 16:14:39 -04:00
Mike Bayer b092d88ce7 test command 2014-09-13 15:49:53 -04:00
Mike Bayer 62885198ac bulk insert 2014-09-13 15:47:30 -04:00
Mike Bayer 4a34fd8027 - move towards sqlalchemy test base. autogenerate tests so far 2014-09-13 15:38:53 -04:00
Mike Bayer 2778719b09 - updates 2014-09-13 14:14:21 -04:00
Mike Bayer 7eacd721f7 - start using tox 1.8 so that we can easily get multiple sqla versions off the ground 2014-09-13 12:12:57 -04:00
Mike Bayer 78a149369d 0.7 start 2014-09-13 12:12:36 -04:00
Mike Bayer e37162294f 0.6.7 2014-09-09 17:53:56 -04:00
Mike Bayer 78b8f62757 - update naming convention link to point to official docs 2014-09-09 16:54:25 -04:00
Mike Bayer a2cd65bca9 - finish flake8 on tests 2014-09-09 16:51:29 -04:00
Mike Bayer ead05ce48d - fix long lines within package 2014-09-09 16:35:40 -04:00
Mike Bayer 10d3556a55 - do an autopep8 pass for just about everything other
than line length
2014-09-09 12:24:43 -04:00
Mike Bayer effe3d8923 - changelog for pr bitbucket:26 2014-09-09 12:13:48 -04:00
Mike Bayer 2a891e19da Merge https://bitbucket.org/utek/alembic/branch/master into pr26 2014-09-09 12:10:39 -04:00
Mike Bayer 931de83e0e - add a tox.ini file
- update the readme.unittests a bit
2014-09-09 12:10:10 -04:00
Łukasz Bołdys f030f09a0f more test fixes 2014-09-09 11:43:05 +02:00
Łukasz Bołdys bb25e49c52 fixed test 2014-09-09 10:16:06 +02:00
Łukasz Bołdys caf249ac6d MS SQL is using sp_rename instead of Alter table to rename table 2014-09-09 10:12:12 +02:00
Mike Bayer 9974965041 Merged in andreasgrapentin/alembic/template_eval (pull request #25)
replacing eval in multidb template with globals() function lookup
2014-08-28 16:00:10 -04:00
Andreas Grapentin 4aae78c6bb replacing eval in multidb template with globals() function lookup 2014-08-28 21:53:37 +02:00
Mike Bayer 707f2d5518 - Added support for functional indexes when using the
:meth:`.Operations.create_index` directive.   Within the list of columns,
the SQLAlchemy ``text()`` construct can be sent, embedding a literal
SQL expression; the :meth:`.Operations.create_index` will perform some hackery
behind the scenes to get the :class:`.Index` construct to cooperate.
This works around some current limitations in :class:`.Index`
which should be resolved on the SQLAlchemy side at some point.
fixes #222
2014-08-27 19:46:38 -04:00
Mike Bayer 21274431ac 0.6.6 2014-08-07 16:14:56 -04:00
Mike Bayer 590132c52e - ignore __init__.py in versions directory, fixes #95. 2014-08-07 14:51:59 -04:00
Mike Bayer 845052aba4 - changelog for pullreq bitbucket:23 2014-08-07 14:26:23 -04:00
Mike Bayer 7e762d11d8 Merged in paradoxxxzero/alembic/paradoxxxzero/fix-sorted-of-none-values-in-compare-for-1403597500844 (pull request #23)
Fix sorted of None values in compare for python 3
2014-08-07 14:22:31 -04:00
Ryan P. Kelly c2c28980bb Support autogenerating migrations for tables with 255 or more columns 2014-08-07 14:13:26 -04:00
Mike Bayer 18722a75b3 changelog for pr github:14 2014-08-07 14:03:17 -04:00
Mike Bayer 07f9105775 Merge remote-tracking branch 'github/pr/14' into pr14 2014-08-07 14:00:26 -04:00
Florian Mounier 330628c681 Alter autogenerate tests to show python3 problem on already existing tables sort 2014-06-25 15:32:40 +02:00
Mike Bayer f38eaad4a8 this is 0.6.6 2014-06-24 14:26:14 -04:00
paradoxxxzero 1e5869e53e Fix sorted of None values in compare for python 3 2014-06-24 08:13:05 +00:00
Mike Bayer de24f3e1b1 - Some deep-in-the-weeds fixes to try to get "server default" comparison
working better across platforms and expressions, in particular on
the Postgresql backend, mostly dealing with quoting/not quoting of various
expressions at the appropriate time and on a per-backend basis.
Repaired and tested support for such defaults as Postgresql interval
and array defaults.
fixes #212
2014-06-23 13:49:44 -04:00
Mike Bayer 42b109c414 - When a run of Alembic command line fails due to ``CommandError``,
the output now prefixes the string with ``"FAILED:"``, and the error
is also written to the log output using ``log.error()``.
fixes #209
2014-06-12 10:30:14 -04:00
Mike Bayer 1f4d8c6103 - Liberalized even more the check for MySQL indexes that shouldn't be
counted in autogenerate as "drops"; this time it's been reported
that an implicitly created index might be named the same as a composite
foreign key constraint, and not the actual columns, so we now skip those
when detected as well. fixes #208
2014-06-05 16:22:14 -04:00
Andreas Zeidler dddfffc737 (hopefully) make the code a bit more readable 2014-06-04 11:50:11 +02:00
Andreas Zeidler 67ffed92c0 fix rendering of foreign key constraint when using a metadata schema 2014-06-04 11:44:43 +02:00
Marc Abramowitz 0a93da93d0 Eliminate {} (dict) default arg value for `opts`
to MigrationContext.configure

Using a mutable type as a default value is a common source of obscure
problems.
See
http://docs.python-guide.org/en/latest/writing/gotchas/#mutable-default-arguments
2014-05-28 08:54:28 -07:00
Mike Bayer bd8a8dc60d - changelog + test for MigrationContext.config 2014-05-25 14:23:54 -04:00
Mike Bayer ab4a402fdb Merge branch 'add_env_context_and_config_to_migration_context' of https://github.com/msabramo/alembic into t 2014-05-25 14:16:33 -04:00
mike bayer e46d5dc1a5 Merge pull request #11 from msabramo/gitignore
.gitignore: .egg-info => *.egg-info
2014-05-25 14:15:26 -04:00
Marc Abramowitz a4c11c2643 Add EnvironmentContext and Config to MigrationContext
This lets migrations do stuff like:

    op.get_context().config.get_main_option('schema')

where `schema` is a custom option that I added to alembic.ini
2014-05-19 13:15:24 -07:00
Marc Abramowitz 006e6804e8 .gitignore: .egg-info => *.egg-info 2014-05-19 09:00:25 -07:00
Mike Bayer c384dd6e14 update link to pkg_resources 2014-05-15 14:12:13 -04:00
Mike Bayer bb51372abf 0.6.5 2014-05-03 18:37:00 -04:00
Mike Bayer 55d97db8c3 - This releases' "autogenerate index detection" bug, when a MySQL table
includes an Index with the same name as a column, autogenerate reported
it as an "add" even though its not; this is because we ignore reflected
indexes of this nature due to MySQL creating them implicitly.  Indexes
that are named the same as a column are now ignored on
MySQL if we see that the backend is reporting that it already exists;
this indicates that we can still detect additions of these indexes
but not drops, as we cannot distinguish a backend index same-named
as the column as one that is user generated or mysql-generated.
fixes #202
2014-05-02 16:04:43 -04:00
Mike Bayer fc61223130 - index autogen is a big enough deal to warrant its own test suite 2014-05-02 15:52:01 -04:00