]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/log
thirdparty/sqlalchemy/alembic.git
6 years agoFurther updates to CHECK logic
Mike Bayer [Sat, 4 May 2019 17:25:25 +0000 (13:25 -0400)] 
Further updates to CHECK logic

Change-Id: I5b0905df8d438eaa2a9665203f3d98a0db9c31f4

6 years agoTune "rename boolean column w CHECK constraint" test for MySQL 8, mariadb10.2
Mike Bayer [Thu, 2 May 2019 15:41:48 +0000 (09:41 -0600)] 
Tune "rename boolean column w CHECK constraint" test for MySQL 8, mariadb10.2

Change-Id: Idb5292f3976b9632069145ff0a7df948a945d7d8
Fixes: #556
6 years agoVersion 1.0.11 placeholder
Mike Bayer [Sun, 28 Apr 2019 19:00:36 +0000 (15:00 -0400)] 
Version 1.0.11 placeholder

6 years ago- 1.0.10 rel_1_0_10
Mike Bayer [Sun, 28 Apr 2019 18:55:16 +0000 (14:55 -0400)] 
- 1.0.10

6 years ago-fix typo
Mike Bayer [Sun, 28 Apr 2019 18:51:34 +0000 (14:51 -0400)] 
-fix typo

Change-Id: I31641577b8324a7ed713356a6ae597d19e1c61e4

6 years agoMerge "Check for rendered integer default is None on MySQL"
mike bayer [Sun, 28 Apr 2019 03:14:02 +0000 (03:14 +0000)] 
Merge "Check for rendered integer default is None on MySQL"

6 years agoCheck for rendered integer default is None on MySQL
Mike Bayer [Sat, 27 Apr 2019 00:22:21 +0000 (20:22 -0400)] 
Check for rendered integer default is None on MySQL

Fixed bug when using the
:paramref:`.EnvironmentContext.configure.compare_server_default` flag set
to ``True``where a server default that is introduced in the table metadata
on an ``Integer`` column, where there is no existing server default in the
database, would raise a ``TypeError``.

Change-Id: Ia2954cc113b47687d1cbf8244c77742326a50c86
Fixes: #553
6 years agoMerge "Raise for non-string revision identifier"
mike bayer [Sun, 28 Apr 2019 03:12:41 +0000 (03:12 +0000)] 
Merge "Raise for non-string revision identifier"

6 years agoRaise for non-string revision identifier
Mike Bayer [Wed, 24 Apr 2019 18:46:03 +0000 (13:46 -0500)] 
Raise for non-string revision identifier

Added an assertion in :meth:`.RevisionMap.get_revisions` and other methods
which ensures revision numbers are passed as strings or collections of
strings.   Driver issues particularly on MySQL may inadvertently be passing
bytes here which leads to failures later on.

Change-Id: Id80c958f0a082fed26cac2cf838cb7507b8d814c
Fixes: #551
6 years agoMerge "Use first line of command docstring for help text."
mike bayer [Tue, 23 Apr 2019 22:36:48 +0000 (22:36 +0000)] 
Merge "Use first line of command docstring for help text."

6 years agoUse first line of command docstring for help text.
Mike Bayer [Tue, 23 Apr 2019 17:21:09 +0000 (12:21 -0500)] 
Use first line of command docstring for help text.

Fixed bug introduced in release 1.0.9 where the helptext for commands
inadvertently got expanded to include function docstrings from the
command.py module.  The logic has been adjusted to only refer to the first
line of each docstring as was the original intent.

Change-Id: I88d7b31b6b54fd065511d969849aef3977eaf6a0
Fixes: #552
6 years agoVersion 1.0.10 placeholder
Mike Bayer [Mon, 15 Apr 2019 15:47:18 +0000 (11:47 -0400)] 
Version 1.0.10 placeholder

6 years ago- 1.0.9 rel_1_0_9
Mike Bayer [Mon, 15 Apr 2019 15:38:59 +0000 (11:38 -0400)] 
- 1.0.9

6 years agoMerge "Remove formatargspec work from create_method_proxy"
mike bayer [Sat, 30 Mar 2019 03:27:57 +0000 (03:27 +0000)] 
Merge "Remove formatargspec work from create_method_proxy"

6 years agoRemove formatargspec work from create_method_proxy
Mike Bayer [Fri, 29 Mar 2019 17:46:32 +0000 (13:46 -0400)] 
Remove formatargspec work from create_method_proxy

Simplified the internal scheme used to generate the ``alembic.op`` namespace
to no longer attempt to generate full method signatures (e.g. rather than
generic ``*args, **kw``) as this was not working in most cases anyway, while
in rare circumstances it would in fact sporadically have access to the real
argument names and then fail when generating the function due to missing
symbols in the argument signature.

Change-Id: I06e4ecf1ddcdb0799856ba7e39b17f28d19cc5d2
Fixes: #548
6 years agoAdd missing whitespace to configuration template and doc example.
Aru Sahni [Sat, 16 Mar 2019 21:31:19 +0000 (17:31 -0400)] 
Add missing whitespace to configuration template and doc example.

As a developer who uses whitespace-sensitive programming language, this made my eye twitch ðŸ˜„

Closes: #546
Pull-request: https://github.com/sqlalchemy/alembic/pull/546
Pull-request-sha: 5315a92ff2d88699ea0404c2ebb56fc3833452ed

Change-Id: I90c5561cb27cf78e34c64def24ea13808a860d2e

6 years agoremove unnecessary "from __future__ import with_statement" from env templates
Felix Schwarz [Wed, 13 Mar 2019 13:22:05 +0000 (09:22 -0400)] 
remove unnecessary "from __future__ import with_statement" from env templates

That future import is only required for Python 2.5. alembic 1.0 requires Python 2.7 at least so
we can drop this line.

Closes: #544
Pull-request: https://github.com/sqlalchemy/alembic/pull/544
Pull-request-sha: 3d68986c1409152f85ff6d444710249b825e36f3

Change-Id: I51579449b262e33917f4d97a6fb58fc9a02b694a

6 years agoVersion 1.0.9 placeholder
Mike Bayer [Mon, 4 Mar 2019 18:03:59 +0000 (13:03 -0500)] 
Version 1.0.9 placeholder

6 years ago- 1.0.8 rel_1_0_8
Mike Bayer [Mon, 4 Mar 2019 18:01:32 +0000 (13:01 -0500)] 
- 1.0.8

6 years agoMerge "Use basepython 3.7 for flake8 tests"
mike bayer [Mon, 4 Mar 2019 17:40:47 +0000 (17:40 +0000)] 
Merge "Use basepython 3.7 for flake8 tests"

6 years agoUse basepython 3.7 for flake8 tests
Mike Bayer [Mon, 4 Mar 2019 17:21:00 +0000 (12:21 -0500)] 
Use basepython 3.7 for flake8 tests

this to prevent flake8 from running with python 2 as we have
py3k-specific checks

Change-Id: I82404ea91ecdfc29c70dbc2773f481a3c844215c

6 years agoMerge "Clarify and correct PostgreSQL server default comparison for py37"
mike bayer [Mon, 4 Mar 2019 15:45:29 +0000 (15:45 +0000)] 
Merge "Clarify and correct PostgreSQL server default comparison for py37"

6 years agoClarify and correct PostgreSQL server default comparison for py37
Mike Bayer [Mon, 4 Mar 2019 14:37:08 +0000 (09:37 -0500)] 
Clarify and correct PostgreSQL server default comparison for py37

Fixed issue where server default comparison on the PostgreSQL dialect would
fail for a blank string on Python 3.7 only, due to a change in regular
expression behavior in Python 3.7.

Change-Id: Iac62ba77622d63ad0c2666cf20a4622f98cf14e6
Fixes: #541
6 years agoRemoved force parameter from base.py
Parth Shandilya [Mon, 4 Feb 2019 19:26:48 +0000 (14:26 -0500)] 
Removed force parameter from base.py

Removed use of deprecated ``force`` parameter for SQLAlchemy quoting
functions as this parameter will be removed in a future release.
Pull request courtesy Parth Shandilya(ParthS007).

Fixes: #528
Closes: #532
Pull-request: https://github.com/sqlalchemy/alembic/pull/532
Pull-request-sha: 61ce70217527ab67395fa90ebaf4631837b3fe5a

Change-Id: I93b2a0697366b9c0f95338e134d032aaf32c7130

6 years agoUpdate documentation for Config
Federico T [Fri, 15 Feb 2019 18:11:51 +0000 (15:11 -0300)] 
Update documentation for Config

Replace "url" with "sqlalchemy.url" in example use of Config object.

Change-Id: Ib1179885ea82322b9838d6889d937400c96e207e
Fixes: #536
6 years agotry removing !U for this test
Mike Bayer [Thu, 7 Feb 2019 16:05:17 +0000 (11:05 -0500)] 
try removing !U for this test

Change-Id: I6668feedc3067938ae1bc364f3d531564355bed8

6 years agoRepair tests for SQLAlchemy 1.3 safestring change
Mike Bayer [Thu, 7 Feb 2019 15:04:41 +0000 (10:04 -0500)] 
Repair tests for SQLAlchemy 1.3 safestring change

Latest 1.3 includes checks for valid SQL keywords and applies
column() to the element of ExcludeConstraint, adjust tests to
work for this as well as previous behavior.

Change-Id: I7ee571d04cd359dce5b170ed1178cb5637694a10

6 years agoVersion 1.0.8 placeholder
Mike Bayer [Sat, 26 Jan 2019 02:06:39 +0000 (21:06 -0500)] 
Version 1.0.8 placeholder

6 years ago- 1.0.7 rel_1_0_7
Mike Bayer [Sat, 26 Jan 2019 02:03:56 +0000 (21:03 -0500)] 
- 1.0.7

6 years agoRemove print statement
Mike Bayer [Thu, 24 Jan 2019 08:07:02 +0000 (03:07 -0500)] 
Remove print statement

Change-Id: I0c0d6701daa1c84b0905b5c4a8cab2383059389e
References: #529

6 years agoFix single quote escaping for the SQL comments
Damien Garaud [Wed, 23 Jan 2019 16:13:37 +0000 (11:13 -0500)] 
Fix single quote escaping for the SQL comments

Fixed issue in new comment support where autogenerated Python code
for comments wasn't using ``repr()`` thus causing issues with
quoting.  Pull request courtesy Damien Garaud.

Fixes: #529
Closes: #530
Pull-request: https://github.com/sqlalchemy/alembic/pull/530
Pull-request-sha: c85f2de986da6c1231a18732b097ff890e67977e

Change-Id: I7e55cc1968ba83765386c66bd1f1e69a593f133a

6 years agoVersion 1.0.7 placeholder
Mike Bayer [Sun, 13 Jan 2019 18:03:47 +0000 (13:03 -0500)] 
Version 1.0.7 placeholder

6 years ago- 1.0.6 rel_1_0_6
Mike Bayer [Sun, 13 Jan 2019 18:00:48 +0000 (13:00 -0500)] 
- 1.0.6

6 years agoinclude 1.2.16 for fixes SQLA issue 4436
Mike Bayer [Sun, 13 Jan 2019 17:59:48 +0000 (12:59 -0500)] 
include 1.2.16 for fixes SQLA issue 4436

Change-Id: I34e007618f846a51c2a58754131db9670b77f825

6 years ago- happy new year
Mike Bayer [Sun, 13 Jan 2019 17:44:52 +0000 (12:44 -0500)] 
- happy new year

Change-Id: I7ee1ea57bc4a753155983ced0559ca81797f7531

6 years agoUpdate comment documentation, make sure tests always run
Mike Bayer [Fri, 11 Jan 2019 20:40:10 +0000 (15:40 -0500)] 
Update comment documentation, make sure tests always run

Corrected the links and text in the changelog note as well as
ensured new comment-oriented methods and parameters include a
versionadded token.    Added a more specific check so that
any run of the tests will make sure SQLAlchemy issue 4436
is resolved as 1.2.16 resolves it but 1.3.0b1, which currently
comes out for "python setup.py test", does not.

Change-Id: Ibd94bf7940b279e85b0ec1ddceb309df0c18f0b1

6 years agoImplemented support for Table and Column Comments
Mike Waites [Fri, 31 Aug 2018 18:56:36 +0000 (19:56 +0100)] 
Implemented support for Table and Column Comments

Added Table and Column level comments for supported backends.
`create_table`, `add_column` and `alter_column` now optionally
take  `comment="X"` kwarg.  Support for autogenerate for Table
and Column objects has also been added

Fixes: #422
Change-Id: I1fd37bb7fe3d167baf7b1e7bf7ff5bfd48e7cf54

6 years agoFix package local object import
Mike Bayer [Mon, 7 Jan 2019 22:21:35 +0000 (17:21 -0500)] 
Fix package local object import

An import cycle created by importing an object from
__init__.py is resolved by importing from the local
module.

Change-Id: Idbd357dcfbb792cafe3c765f7bb8b1d19aa16971

6 years agozimports run
Mike Bayer [Sun, 6 Jan 2019 17:50:53 +0000 (12:50 -0500)] 
zimports run

after black is applied, rewrite imports and fix
remaining whitespace / identifier issues.

Change-Id: I49474c085b5f4a4b52e4cf90c9705d6a896d4003

6 years agopure black run + flake8
Mike Bayer [Sun, 6 Jan 2019 17:37:53 +0000 (12:37 -0500)] 
pure black run + flake8

run black -l 79 against source code, set up for
full flake8 testing.

Change-Id: I4108e1274d49894b9898ec5bd3a1147933a473d7

6 years agoFix expect_warnings_on function
Mike Bayer [Sun, 6 Jan 2019 18:06:56 +0000 (13:06 -0500)] 
Fix expect_warnings_on function

This function is not used in Alembic right now but it contained
undefined symbols, re-copy over from SQLAlchemy.

Change-Id: I3eb6eb76dc1d0d83606fa2a4af88300ee802d3bf

6 years agoCorrect postgresql provisioning
Mike Bayer [Sun, 6 Jan 2019 18:01:37 +0000 (13:01 -0500)] 
Correct postgresql provisioning

port of a fix from SQLAlchemy that corrects the
retry mechanism when creating databases

Change-Id: Id7ee757c065338ccfe3118203a139fc959ed40d8

6 years agoreword op.execute()
Mike Bayer [Fri, 28 Dec 2018 14:05:27 +0000 (09:05 -0500)] 
reword op.execute()

Apparently op.execute() makes use of _exec() which coerces strings
into text() constructs.  This is less than ideal, however for now
document the caveat that colons need to be escaped.

Change-Id: I17e0ff6a46e6f5be93e692a67ddd8e7b523d9508
Fixes: #522
6 years agoAll sphinx dependencies move under the github sqlalchemy organization
Mike Bayer [Mon, 3 Dec 2018 22:04:34 +0000 (17:04 -0500)] 
All sphinx dependencies move under the github sqlalchemy organization

Change-Id: I9e268697b11e91c76535f85db3b2883c0d6fb0f2

6 years agoChange reference to dogpile.cache to Alembic 520/head
rrueth [Thu, 29 Nov 2018 18:47:27 +0000 (10:47 -0800)] 
Change reference to dogpile.cache to Alembic

6 years agoVersion 1.0.6 placeholder
Mike Bayer [Wed, 28 Nov 2018 04:31:31 +0000 (23:31 -0500)] 
Version 1.0.6 placeholder

6 years ago- 1.0.5 rel_1_0_5
Mike Bayer [Wed, 28 Nov 2018 04:28:54 +0000 (23:28 -0500)] 
- 1.0.5

6 years agoMerge "Vendor python3 formatargspec, import from collections.abc"
mike bayer [Wed, 28 Nov 2018 04:11:54 +0000 (04:11 +0000)] 
Merge "Vendor python3 formatargspec, import from collections.abc"

6 years agoVendor python3 formatargspec, import from collections.abc
Stefan Tjarks [Thu, 22 Nov 2018 03:08:56 +0000 (22:08 -0500)] 
Vendor python3 formatargspec, import from collections.abc

Resolved remaining Python 3 deprecation warnings, covering
the use of inspect.formatargspec() with a vendored version
copied from the Python standard library, importing
collections.abc above Python 3.3 when testing against abstract
base classes, fixed one occurrence of log.warn(), as well as a few
invalid escape sequences.

Add DeprecationWarning to the test suite as an error raise
as has been the case within SQLAlchemy for some time now.

Fixes: #507
Co-authored-by: Mike Bayer <mike_mp@zzzcomputing.com>
Change-Id: I121121b3d2dd90e6f3c9b16dec2fc80b9699c400
Pull-request: https://bitbucket.org/zzzeek/alembic/pull-requests/85

6 years agoVersion 1.0.5 placeholder
Mike Bayer [Wed, 28 Nov 2018 01:05:25 +0000 (20:05 -0500)] 
Version 1.0.5 placeholder

6 years ago- 1.0.4 rel_1_0_4
Mike Bayer [Wed, 28 Nov 2018 01:01:50 +0000 (20:01 -0500)] 
- 1.0.4

6 years agodoc build has a dependency on Mako
Mike Bayer [Wed, 28 Nov 2018 01:00:20 +0000 (20:00 -0500)] 
doc build has a dependency on Mako

This probably has never shown up because we typically
have Mako installed where we are building sphinx docs

Change-Id: I065c28677ead3bcef75ac6e949ac90c4a19ed1dc

6 years agoMove to github, new domain, sqlalchemy links
Mike Bayer [Tue, 27 Nov 2018 03:42:28 +0000 (22:42 -0500)] 
Move to github, new domain, sqlalchemy links

Alembic is now under the sqlalchemy.org domain
for the website and all repos are moving under github.com/sqlalchemy.

Change-Id: Id9ce08b61ed0ccdf50396f911838b21112e61652

6 years agoremove @HEAD indicator from docs requirements gh/master
Mike Bayer [Mon, 26 Nov 2018 05:19:55 +0000 (00:19 -0500)] 
remove @HEAD indicator from docs requirements

this is failing with more recent git/pip combinations.

Change-Id: Ib35e8e80d9d116c00ab1eadba4bca3f0d52f4f77

6 years ago- move homepage
Mike Bayer [Sun, 25 Nov 2018 05:37:05 +0000 (00:37 -0500)] 
- move homepage

Change-Id: Ic08fafa09be72e67f4db641ea157fb841cae9ca0

6 years agoTweak desc for --sql to ref offline mode
Sam Park [Wed, 21 Nov 2018 04:26:05 +0000 (20:26 -0800)] 
Tweak desc for --sql to ref offline mode

For the longest time I thought `upgrade --sql head` just outputs the raw SQL for the
upgrade (as opposed to dumping the entire history in SQL).

Maybe this will help the naive like me?

6 years agoVersion 1.0.4 placeholder
Mike Bayer [Wed, 14 Nov 2018 20:37:40 +0000 (15:37 -0500)] 
Version 1.0.4 placeholder

6 years ago- 1.0.3 rel_1_0_3
Mike Bayer [Wed, 14 Nov 2018 20:29:38 +0000 (15:29 -0500)] 
- 1.0.3

6 years agoCheck for mssql_include is None
Mike Bayer [Wed, 14 Nov 2018 18:53:57 +0000 (13:53 -0500)] 
Check for mssql_include is None

Fixed regression caused by :ticket:`513`, where the logic to consume
``mssql_include`` was not correctly interpreting the case where the flag
was not present, breaking the ``op.create_index`` directive for SQL Server
as a whole.

Change-Id: I4c3a9d1f12017b62a7affa3863bba6e2bead67cf
Fixes: #516
6 years agounblock for py.test as of 3.9.3
Mike Bayer [Fri, 2 Nov 2018 20:22:20 +0000 (16:22 -0400)] 
unblock for py.test as of 3.9.3

Change-Id: Ib00d07058997e97a992084bd949ebb6ed2bcb2e2
References: I867e2b36122f578e69f2444ef9712cd73995cce3

6 years agoVersion 1.0.3 placeholder
Mike Bayer [Wed, 31 Oct 2018 20:34:47 +0000 (16:34 -0400)] 
Version 1.0.3 placeholder

6 years ago- 1.0.2 rel_1_0_2
Mike Bayer [Wed, 31 Oct 2018 20:32:36 +0000 (16:32 -0400)] 
- 1.0.2

6 years agoDont autogenerate "system=True", render flag correctly
Mike Bayer [Wed, 24 Oct 2018 17:44:09 +0000 (13:44 -0400)] 
Dont autogenerate "system=True", render flag correctly

The ``system=True`` flag on :class:`.Column`, used primarily in conjunction
with the Postgresql "xmin" column, now renders within the autogenerate
render process, allowing the column to be excluded from DDL.  Additionally,
adding a system=True column to a model will produce no autogenerate diff as
this column is implicitly present in the database.

Change-Id: Ie3aab9d489ebb9aecccbdf9d5b3ce8ccc42554bf
Fixes: #515
6 years agoblock all py.test 3.9.1 or greater until
Mike Bayer [Wed, 24 Oct 2018 17:44:09 +0000 (13:44 -0400)] 
block all py.test 3.9.1 or greater until
https://github.com/pytest-dev/pytest/issues/4181 is fixed

Change-Id: I867e2b36122f578e69f2444ef9712cd73995cce3

6 years agoAdd special handling for SQL Server create_index mssql_includes
Mike Bayer [Fri, 19 Oct 2018 14:00:50 +0000 (10:00 -0400)] 
Add special handling for SQL Server create_index mssql_includes

Fixed issue where usage of the SQL Server ``mssql_include`` option within a
:meth:`.Operations.create_index` would raise a KeyError, as the additional
column(s) need to be added to the table object used by the construct
internally.

Change-Id: If58fa35b9db8af473a9654e5a2c8861741810511
Fixes: #513
6 years agoblock py.test 3.9.1
Mike Bayer [Wed, 17 Oct 2018 19:44:00 +0000 (15:44 -0400)] 
block py.test 3.9.1

references:

https://github.com/pytest-dev/pytest/issues/4181

Change-Id: Iad3b6845e94753c55771419ccd1f99852bc89159

6 years agoVersion 1.0.2 placeholder
Mike Bayer [Wed, 17 Oct 2018 14:54:31 +0000 (10:54 -0400)] 
Version 1.0.2 placeholder

6 years ago- 1.0.1 rel_1_0_1
Mike Bayer [Wed, 17 Oct 2018 14:51:08 +0000 (10:51 -0400)] 
- 1.0.1

6 years agoReplace union_update with update
Mike Bayer [Wed, 17 Oct 2018 14:14:22 +0000 (10:14 -0400)] 
Replace union_update with update

Fixed issue where removed method ``union_update()`` was used when a
customized :class:`.MigrationScript` instance included entries in the
``.imports`` data member, raising an AttributeError.

Change-Id: Ia141db106bc3d57238e2fa6a546041fd573c0ea4
Fixes: #512
6 years agoRevert "Replace set union_update() references with update()"
Mike Bayer [Wed, 17 Oct 2018 14:09:50 +0000 (10:09 -0400)] 
Revert "Replace set union_update() references with update()"

This reverts commit 7e3d032cc92af73988f02f281ab354de7fc8e3ab.   the
PR was not provided with a test case or bug report and this is actually
an uncovered code bug.  will re-submit with a proper bug report

6 years agoReplace set union_update() references with update()
Luis Calderon [Tue, 16 Oct 2018 13:38:54 +0000 (09:38 -0400)] 
Replace set union_update() references with update()

The autogenerate api references the `union_update()` method of sets which was removed in Python 2.4. The previous method is actually an alias for the `update()` method.

This PR replaces the api reference with the correct one for Python 2.7

Change-Id: Ida8d44bfd2efc9d3c6879ca8237d6b39e2b76987
Pull-request: https://github.com/zzzeek/alembic/pull/46

6 years agoMerge branch 'fix-setuptools-docs-link' of https://bitbucket.org/cdunklau/alembic
Mike Bayer [Tue, 25 Sep 2018 15:43:09 +0000 (11:43 -0400)] 
Merge branch 'fix-setuptools-docs-link' of https://bitbucket.org/cdunklau/alembic

Change-Id: I81e69d0dde1c17d97fd7e4e025d9442188d4e3be

6 years agoFix dead Setuptools doc link
Colin Dunklau [Sat, 22 Sep 2018 11:05:12 +0000 (13:05 +0200)] 
Fix dead Setuptools doc link

6 years agoDon't format output twice in writer
Mike Waites [Fri, 31 Aug 2018 19:42:27 +0000 (19:42 +0000)] 
Don't format output twice in writer

Fixed an issue where revision descriptions were essentially
being formatted twice. Any revision description that contained
characters like %, writing output to stdout will fail because
the call to config.print_stdout attempted to format any
additional args passed to the function.
This fix now only applies string formatting if any args are provided
along with the output text.

Fixes: #497
Change-Id: I64b2f00e8f67b95652bd7cbbe8510f8c5f645af1
Pull-request: https://github.com/zzzeek/alembic/pull/45

6 years agoRun batch tests per backend
Mike Bayer [Fri, 31 Aug 2018 20:24:16 +0000 (16:24 -0400)] 
Run batch tests per backend

Seeing a new unexpected success in limited scope for mysql,
correlating with addition of mariadb 10.3 to CI.  This test
should be producing db-specific successes/failures to track
it more easily

Change-Id: Ieacc640768caf98323c5652cb53189da2c43f553

7 years agoFix documentation for compare_against_backend SQLAlchemy method
Mike Bayer [Wed, 1 Aug 2018 17:37:52 +0000 (13:37 -0400)] 
Fix documentation for compare_against_backend SQLAlchemy method

Change-Id: Ic25de4facdb5467075f0f8b7e028e3e7db67ab66
Fixes: #501
7 years agoVersion 1.0.1 placeholder
Mike Bayer [Fri, 13 Jul 2018 18:10:57 +0000 (14:10 -0400)] 
Version 1.0.1 placeholder

7 years ago- 1.0.0 rel_1_0_0
Mike Bayer [Fri, 13 Jul 2018 18:09:19 +0000 (14:09 -0400)] 
- 1.0.0

7 years ago- repair classifier
Mike Bayer [Fri, 13 Jul 2018 18:01:46 +0000 (14:01 -0400)] 
- repair classifier

Change-Id: I42db26db364c7a4146b184da14e258ac93afce32

7 years ago- 1.0.0
Mike Bayer [Fri, 13 Jul 2018 18:04:47 +0000 (14:04 -0400)] 
- 1.0.0

7 years ago- 1.0.0
Mike Bayer [Fri, 13 Jul 2018 17:48:09 +0000 (13:48 -0400)] 
- 1.0.0

7 years agoDrop support for all SQLAlchemy < 0.9
Mike Bayer [Fri, 13 Jul 2018 16:36:06 +0000 (12:36 -0400)] 
Drop support for all SQLAlchemy < 0.9

With the 1.0 release, Alembic's minimum SQLAlchemy support version
moves to 0.9.0, previously 0.7.9.

Change-Id: I299d8af11c5982c4a792da1fcb96e4b437af687d

7 years agoRemove column from primary key when dropping
Mike Bayer [Wed, 11 Jul 2018 18:05:02 +0000 (14:05 -0400)] 
Remove column from primary key when dropping

Fixed issue in batch where dropping a primary key column, then adding it
back under the same name but without the primary_key flag, would not remove
it from the existing PrimaryKeyConstraint.  If a new PrimaryKeyConstraint
is added, it is used as-is, as was the case before.

Change-Id: Id79c793fbde1a17393adeb75c2da39f191e676e6
Fixes: #502
7 years agoblock cx_Oracle 6.4
Mike Bayer [Thu, 5 Jul 2018 03:32:17 +0000 (23:32 -0400)] 
block cx_Oracle 6.4

Prevents https://github.com/oracle/python-cx_Oracle/issues/199

Change-Id: Ie964f4cf0d57b65f18761e5673f9ce67c948114a

7 years agoMerge "Drop Python 2.6 / 3.3 support"
mike bayer [Sat, 30 Jun 2018 01:09:04 +0000 (21:09 -0400)] 
Merge "Drop Python 2.6 / 3.3 support"

7 years ago- move to "stable", modernize a bit
Mike Bayer [Fri, 29 Jun 2018 22:03:17 +0000 (18:03 -0400)] 
- move to "stable", modernize a bit

Change-Id: Ia4c29125de1373cdd7a327ea1a960415828466ca

7 years agoDrop Python 2.6 / 3.3 support
Hugo [Sat, 9 Jun 2018 14:41:43 +0000 (17:41 +0300)] 
Drop Python 2.6 / 3.3 support

For Alembic 1.0, Python 2.6 / 3.3 support is being dropped, allowing a
fixed setup.py to be built as well as universal wheels.  Pull request
courtesy Hugo.

Change-Id: Iff9018ea6c5a65b3560f7ca72e0ef233c822ec27
Fixes: #491
7 years agoVersion 1.0.0 placeholder
Mike Bayer [Fri, 29 Jun 2018 20:27:56 +0000 (16:27 -0400)] 
Version 1.0.0 placeholder

7 years ago- 0.9.10 rel_0_9_10
Mike Bayer [Fri, 29 Jun 2018 20:25:00 +0000 (16:25 -0400)] 
- 0.9.10

7 years agoMerge "Render autogenerate=True if present"
mike bayer [Fri, 29 Jun 2018 20:12:51 +0000 (16:12 -0400)] 
Merge "Render autogenerate=True if present"

7 years agoRender autogenerate=True if present
elad [Fri, 29 Jun 2018 15:13:43 +0000 (11:13 -0400)] 
Render autogenerate=True if present

Fixed issue where "autoincrement=True" would not render for a column that
specified it, since as of SQLAlchemy 1.1 this is no longer the default
value for "autoincrement".  Note the behavior only takes effect against the
SQLAlchemy 1.1.0 and higher; for pre-1.1 SQLAlchemy, "autoincrement=True"
does not render as was the case before. Pull request courtesy  Elad Almos.

Change-Id: Ia043c60b4bb6f0520056a08c8d5e2f0c838ddff7
Pull-request: https://bitbucket.org/zzzeek/alembic/pull-requests/80

7 years agoMake call to declarative_base clear in example.
Jack Grahl [Fri, 29 Jun 2018 15:21:00 +0000 (15:21 +0000)] 
Make call to declarative_base clear in example.

Having this function call in the example code makes it 100% clear that Base has to be initialized with the metadata object, and how to do this.

7 years agoMerge "Add py37, sqla1.2 tags, drop py33 testing"
mike bayer [Tue, 19 Jun 2018 23:43:41 +0000 (19:43 -0400)] 
Merge "Add py37, sqla1.2 tags, drop py33 testing"

7 years agoAdd py37, sqla1.2 tags, drop py33 testing
Mike Bayer [Tue, 19 Jun 2018 19:43:50 +0000 (15:43 -0400)] 
Add py37, sqla1.2 tags, drop py33 testing

Change-Id: I791bf86fb11d1f570eb01c135ec28e02e624721a

7 years agoUse external impl for type rendering
Mike Bayer [Fri, 18 May 2018 14:23:22 +0000 (10:23 -0400)] 
Use external impl for type rendering

The render_type() method of DefaultImpl was hardcoded to
only work for SQLAlchemy types.  Most of the work here involves
adding a proof of concept suite illustrating an external dialect
fully rendering types and nested types with imports.

Change-Id: Ia1bf7bad85efdc6083388e724601d5501f5e2454
Fixes: #494
7 years agoImplement native boolean check constraint flag in test suite
Mike Bayer [Fri, 18 May 2018 15:11:49 +0000 (11:11 -0400)] 
Implement native boolean check constraint flag in test suite

This is based on
https://github.com/zzzeek/sqlalchemy/commit/d2bacad469c0b07cc707b563e37e835abcf96eb8
which adds further specificity to SQL Server's boolean behaviors,
the test suite here expects a CHECK constraint to be rendered.

Change-Id: I2cce018135f292c7eeddcdbc724668ee9d9c9c48

7 years agoUse repr for drop_constraint schema
Denis Kataev [Wed, 11 Apr 2018 14:27:34 +0000 (10:27 -0400)] 
Use repr for drop_constraint schema

The "op.drop_constraint()" directive will now render using ``repr()`` for
the schema name, in the same way that "schema" renders for all the other op
directives.  Pull request courtesy Denis Kataev.

Change-Id: Ifbcabcfd87fc631ec12a488478851e7841275678
Pull-request: https://github.com/zzzeek/alembic/pull/44

7 years agoAdd recipe for generating Python code for existing tables
Mike Bayer [Wed, 28 Mar 2018 23:12:41 +0000 (19:12 -0400)] 
Add recipe for generating Python code for existing tables

Change-Id: Ia54f1a383d3b9ee32963f33276025bf8ae11d003

7 years agoVersion 0.9.10 placeholder
Mike Bayer [Thu, 22 Mar 2018 14:43:22 +0000 (10:43 -0400)] 
Version 0.9.10 placeholder

7 years ago- 0.9.9 rel_0_9_9
Mike Bayer [Thu, 22 Mar 2018 14:06:32 +0000 (10:06 -0400)] 
- 0.9.9