]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/log
thirdparty/sqlalchemy/alembic.git
8 years agoMerge "Get test compat for oracle"
mike bayer [Mon, 9 Jan 2017 19:23:22 +0000 (14:23 -0500)] 
Merge "Get test compat for oracle"

8 years agoGet test compat for oracle
Mike Bayer [Wed, 4 Jan 2017 16:24:26 +0000 (11:24 -0500)] 
Get test compat for oracle

Start getting all the exclusions and conventions in place
to get the autogen suites to pass against the oracle dialect

Change-Id: I63b8c46311af4fc77da6baf17b628a64e9748f85

8 years ago- happy new year
Mike Bayer [Wed, 4 Jan 2017 17:41:05 +0000 (12:41 -0500)] 
- happy new year

Change-Id: I88881e76cd37653f338d1aa8a4c76463ea3cdc77

8 years agoEnsure primary_key flag unset for PK batch drop
Mike Bayer [Mon, 19 Dec 2016 16:04:43 +0000 (11:04 -0500)] 
Ensure primary_key flag unset for PK batch drop

Fixed bug where doing ``batch_op.drop_constraint()`` against the
primary key constraint would fail to remove the "primary_key" flag
from the column, resulting in the constraint being recreated.

Change-Id: I20c04860b151ac86466337f0522018be06c6feec
Fixes: #402
8 years agoIgnore py files generated by emacs
Markus Mattes [Mon, 28 Nov 2016 22:32:27 +0000 (17:32 -0500)] 
Ignore py files generated by emacs

Added a file ignore for Python files of the form ``.#<name>.py``,
which are generated by the Emacs editor.  Pull request courtesy
Markus Mattes.

Change-Id: I06861c2ba7b8e6730948c01ff0690b50bdb26f0f
Pull-request: https://github.com/zzzeek/alembic/pull/32
Fixes: #356
8 years ago- 0.8.10 setup
Mike Bayer [Mon, 28 Nov 2016 22:39:40 +0000 (17:39 -0500)] 
- 0.8.10 setup

Change-Id: I260ddb041a41524ffd0b252cd791cf155fab29eb

8 years ago- 0.8.9 rel_0_8_9
Mike Bayer [Mon, 28 Nov 2016 17:14:07 +0000 (12:14 -0500)] 
- 0.8.9

8 years agoMerge "Add single pound to generated comments"
mike bayer [Mon, 28 Nov 2016 16:22:27 +0000 (11:22 -0500)] 
Merge "Add single pound to generated comments"

8 years agocast() types in batch only if type_affinity is different
Mike Bayer [Wed, 23 Nov 2016 19:42:19 +0000 (14:42 -0500)] 
cast() types in batch only if type_affinity is different

Batch mode will not use CAST() to copy data if type_ is given, however
the basic type affinity matches that of the existing type.  This to
avoid SQLite's CAST of TIMESTAMP which results in truncation of the
data, in those cases where the user needs to add redundant type_ for
other reasons.

Change-Id: I20f7b399cd3cd7740d67ff7d624aa1da874ebc71
Fixes: #391
8 years agofile generated by alembic revison is now pep8 compliant
Markus Mattes [Mon, 21 Nov 2016 17:05:23 +0000 (12:05 -0500)] 
file generated by alembic revison is now pep8 compliant

Change-Id: I233d2ba2cbbe6a363d9118182f1d855a6a12b00c
Pull-request: https://github.com/zzzeek/alembic/pull/31

8 years agoDetect and ignore duplicate revision files on read
Jiri Kuncar [Fri, 18 Nov 2016 18:40:24 +0000 (13:40 -0500)] 
Detect and ignore duplicate revision files on read

Added an additional check when reading in revision files to detect
if the same file is being read twice; this can occur if the same directory
or a symlink equivalent is present more than once in version_locations.
A warning is now emitted and the file is skipped.  Pull request courtesy
Jiri Kuncar.

Change-Id: I10ffc8eff420d18c55d3533afb9d5935bbadfe32
Pull-request: https://github.com/zzzeek/alembic/pull/30

8 years ago- bump changelog for version that supports additional .. change:: tags
Mike Bayer [Tue, 15 Nov 2016 21:12:47 +0000 (16:12 -0500)] 
- bump changelog for version that supports additional .. change:: tags

Change-Id: I59fdc96b4aa16b6647eb97497a0270a99db40016

8 years agoAdd single pound to generated comments
Maico Timmerman [Tue, 15 Nov 2016 20:39:18 +0000 (15:39 -0500)] 
Add single pound to generated comments

Adjustment to the "please adjust!" comment in the script.py.mako
template so that the generated comment starts with a single pound
sign, appeasing flake8.

Change-Id: I4b425d2fa8701cabf8352d046b3342a73f78c70d
Pull-request: https://bitbucket.org/zzzeek/alembic/pull-requests/65
Partially-fixes: #393

8 years agoCompare to metadata_impl in compare_type() to guard against custom TypeDecorator
Mike Bayer [Wed, 9 Nov 2016 13:42:12 +0000 (08:42 -0500)] 
Compare to metadata_impl in compare_type() to guard against custom TypeDecorator

Fixed bug where usage of a custom TypeDecorator which returns a
per-dialect type via :meth:`.TypeDecorator.load_dialect_impl` that differs
significantly from the default "impl" for the type decorator would fail
to compare correctly during autogenerate.

Change-Id: I384df35be9513bf8a2ae55e7daa9a52c23108a49
Fixes: #395
8 years agoUnwrap unaryexpression when testing for functional index
Mike Bayer [Fri, 28 Oct 2016 13:17:42 +0000 (09:17 -0400)] 
Unwrap unaryexpression when testing for functional index

Fixed bug in Postgresql "functional index skip" behavior where a
functional index that ended in ASC/DESC wouldn't be detected as something
we can't compare in autogenerate, leading to duplicate definitions
in autogenerated files.

Change-Id: I0fdfee69a89da575078a687bb4551088fb1b67d7
Fixes: #392
8 years agoSupport explicit "base" in --sql mode.
Mike Bayer [Wed, 21 Sep 2016 15:28:40 +0000 (11:28 -0400)] 
Support explicit "base" in --sql mode.

Fix bug where "alembic upgrade base:head --sql" would fail.
Behavior is now equivalent to "alembic upgrade head --sql".

Change-Id: Ic730541c3ce6af01fe892811fd3cc6643e0459a6
Fixes: #388
8 years ago- 0.8.8 rel_0_8_8
Mike Bayer [Mon, 12 Sep 2016 22:20:49 +0000 (18:20 -0400)] 
- 0.8.8

8 years ago- fix changelog
Mike Bayer [Mon, 12 Sep 2016 22:20:10 +0000 (18:20 -0400)] 
- fix changelog

Change-Id: Ie07967808e940664043fabd03137c328a9b702b7

8 years agoThe imports in the default script.py.mako are now at the top
Mike Bayer [Mon, 12 Sep 2016 22:11:44 +0000 (18:11 -0400)] 
The imports in the default script.py.mako are now at the top
so that flake8 editors don't complain by default.  PR courtesy
Guilherme Mansur.

Change-Id: Ie38810df0f36a08b8fdd36f4a6a0ec243515dc34

8 years agoInclude DateTime.timezone in autogen type comparisons
David Szotten [Fri, 17 Jun 2016 16:54:57 +0000 (12:54 -0400)] 
Include DateTime.timezone in autogen type comparisons

Change-Id: I2e5b380625ec45d5ebc0bc74daf9cf9e05f0155a
Pull-request: https://github.com/zzzeek/alembic/pull/26

8 years agoSupport USING for Postgresql ALTER COLUMN.
Frazer McLean [Fri, 17 Jun 2016 16:55:11 +0000 (12:55 -0400)] 
Support USING for Postgresql ALTER COLUMN.

Added support for the USING clause to the ALTER COLUMN operation
for Postgresql.  Support is via the
:paramref:`.op.alter_column.postgresql_using`
parameter.

Fixes: #292
Change-Id: I8b1d418df0b6b731a68614dbffd7a9fb13de4de5
Pull-request: https://github.com/zzzeek/alembic/pull/27

8 years agoMove op tests for Postgresql to test_postgresql
Mike Bayer [Mon, 22 Aug 2016 15:22:28 +0000 (11:22 -0400)] 
Move op tests for Postgresql to test_postgresql

This moves tests for op features specific to Postgresql.
Note this does not include tests in test_op that
make use of the postgresql backend just for "schema" support.

Change-Id: I82b4326bbc3a2c520891214c8e8254da36bd8f2a

8 years ago- placeholder for 0.8.8
Mike Bayer [Mon, 22 Aug 2016 14:55:04 +0000 (10:55 -0400)] 
- placeholder for 0.8.8

Change-Id: Ibf639c01d4abcfe301055d6bbee0305ae9765d79

9 years ago- adjust test to correct for SQLAlchemy issue #3766
Mike Bayer [Thu, 4 Aug 2016 18:19:02 +0000 (14:19 -0400)] 
- adjust test to correct for SQLAlchemy issue #3766

Change-Id: Iaffc0592be1b7c987444a18846759fa343bb822e

9 years ago- 0.8.7 rel_0_8_7
Mike Bayer [Tue, 26 Jul 2016 14:48:01 +0000 (10:48 -0400)] 
- 0.8.7

9 years agoDon't raise RangeNotAncestor for sibling branches
Mike Bayer [Mon, 18 Jul 2016 21:17:53 +0000 (17:17 -0400)] 
Don't raise RangeNotAncestor for sibling branches

Fixed bug where upgrading to the head of a branch which is already
present would fail, only if that head were also the dependency
of a different branch that is also upgraded, as the revision system
would see this as trying to go in the wrong direction.   The check
here has been refined to distinguish between same-branch revisions
out of order vs. movement along sibling branches.

When we're about to claim an error due to
"alembic upgrade greater to lower", make sure this
isn't a request to hit a node in a different branch
that's already implied.

Change-Id: I8641162bb05c6226f0ea12b88b548df41f5a6b51
Fixes: #336
9 years agoMerged in AlfredPerlstein/alembic/fix_doclink (pull request #59)
Michael Bayer [Mon, 18 Jul 2016 14:57:01 +0000 (10:57 -0400)] 
Merged in AlfredPerlstein/alembic/fix_doclink (pull request #59)

Fix doclink away from readthedocs

9 years agoFix doclink away from readthedocs
Alfred Perlstein [Mon, 18 Jul 2016 01:29:14 +0000 (18:29 -0700)] 
Fix doclink away from readthedocs

9 years agoDon't remove dependent version when downgrading to a version.
Mike Bayer [Tue, 12 Jul 2016 19:05:09 +0000 (15:05 -0400)] 
Don't remove dependent version when downgrading to a version.

Adjusted the version traversal on downgrade
such that we can downgrade to a version that is a dependency for
a version in a different branch, *without* needing to remove that
dependent version as well.  Previously, the target version would be
seen as a "merge point" for it's normal up-revision as well as the
dependency.  This integrates with the changes for :ticket:`377`
and :ticket:`378` to improve treatment of branches with dependencies
overall.

Change-Id: Ica0732f6419f68ab85650170839ac8000ba3bbfb
Fixes: #379
9 years agoDetect downgrades over dependencies distinctly from unmerge
Mike Bayer [Sun, 10 Jul 2016 20:23:21 +0000 (16:23 -0400)] 
Detect downgrades over dependencies distinctly from unmerge

Previously, a downgrade to a version that is also a dependency
to another branch, where that branch is advanced beyond
the target, would fail to be downgraded, as this would
be detected as an "umerge" even though the target version
to be INSERTed would not be present.
The patch replaces the existing heuristic
that checks for "delete" with a new one that calculates
a potential "unmerge" fully, and returns False only if we in
fact could do an unmerge.

Also change the string display of a version so that we don't
display misleading target versions that might not actually
be getting invoked.

Fixes: #377
Change-Id: I7420dd7adbd9ccf9ca85b56d9a792a85c40f3454

9 years agoReport on other branch dependencies in "current"
Mike Bayer [Mon, 11 Jul 2016 19:27:45 +0000 (15:27 -0400)] 
Report on other branch dependencies in "current"

Fixed bug where the "alembic current" command wouldn't show a revision
as a current head if it were also a dependency of a version in a
different branch that's also applied.   Extra logic is added to
extract "implied" versions on different branches from the top-level
versions listed in the alembic_version table.

Change-Id: I9f485fbc67555d13f737ecffdd25e4c0d8e33f1c
Fixes: #378
9 years agoEnsure tuples are passed correctly in Revision.__repr__
Mike Bayer [Mon, 11 Jul 2016 15:42:13 +0000 (11:42 -0400)] 
Ensure tuples are passed correctly in Revision.__repr__

Fixed bug where a repr() or str() of a Script object would fail
if the script had multiple dependencies.

Change-Id: Iae866058cce4ec5a7dc499358b23b06a4bbb6ecd

9 years agoDon't remove None for default schema of None
Mike Bayer [Wed, 29 Jun 2016 20:22:24 +0000 (16:22 -0400)] 
Don't remove None for default schema of None

Fixed bug in autogen where if the DB connection sends the default
schema as "None", this "None" would be removed from the list of
schemas to check if include_schemas were set.  This could possibly
impact using include_schemas with SQLite.

Change-Id: I553cdbbe2cfaa5228d86019e14f7c9f56231f295

9 years ago- adjust boolean no_ck test to not use Boolean type
Mike Bayer [Fri, 24 Jun 2016 02:19:55 +0000 (22:19 -0400)] 
- adjust boolean no_ck test to not use Boolean type
to insert a non 0/1 integer; SQLA 1.1 now coerces it to
1/0

Change-Id: I4447547b98a5178c7a1185d5788bfb58ae8c23ee

9 years agoMerged in gkrimer/alembic/cookbook-additions (pull request #58)
Mike Bayer [Wed, 22 Jun 2016 14:11:15 +0000 (10:11 -0400)] 
Merged in gkrimer/alembic/cookbook-additions (pull request #58)

Adding cookbook recipe for excluding views from migrations.

9 years agoAdding cookbook recipe for excluding views from migrations.
Greg Krimer [Tue, 21 Jun 2016 16:30:45 +0000 (11:30 -0500)] 
Adding cookbook recipe for excluding views from migrations.

9 years ago- now at alembic.zzzcomputing.com
Mike Bayer [Sat, 18 Jun 2016 03:48:05 +0000 (23:48 -0400)] 
- now at alembic.zzzcomputing.com

Change-Id: I740b6e65e14f9b6417ecce0b6bb1853a9037bf05

9 years ago- didn't work. sadface
Mike Bayer [Sat, 18 Jun 2016 02:14:00 +0000 (22:14 -0400)] 
- didn't work.  sadface

Change-Id: I59e31c4aa4f5e25b230f4d2e211cb6448f3339ac

9 years ago- attempt to get RTD to include the correct searchtools
Mike Bayer [Sat, 18 Jun 2016 01:05:32 +0000 (21:05 -0400)] 
- attempt to get RTD to include the correct searchtools

Change-Id: Iafb3854e85a48874410235483e4d474f24d6fe52

9 years ago- bump sphinx-paramlinks, trying to get builds to work on RTD
Mike Bayer [Fri, 17 Jun 2016 19:05:52 +0000 (15:05 -0400)] 
- bump sphinx-paramlinks, trying to get builds to work on RTD

Change-Id: Ie57c3f6a26ced7493665be509c6fdfd3d290022d

9 years agoAdd .gitreview
Mike Bayer [Fri, 17 Jun 2016 14:42:24 +0000 (10:42 -0400)] 
Add .gitreview

Change-Id: I97f2929d278c7807be1e4f46ef0a4456995b9dc5

9 years ago- SQlite supports reflection of ON UPDATE / ON DELETE in SQLA 1.1
Mike Bayer [Fri, 3 Jun 2016 19:10:01 +0000 (15:10 -0400)] 
- SQlite supports reflection of ON UPDATE / ON DELETE in SQLA 1.1
- this reflection retains the original case

9 years ago- repair typo
Mike Bayer [Thu, 2 Jun 2016 13:13:52 +0000 (09:13 -0400)] 
- repair typo

9 years ago- version bump
Mike Bayer [Wed, 1 Jun 2016 22:08:02 +0000 (18:08 -0400)] 
- version bump

9 years ago- Small adjustment made to the batch handling for reflected CHECK
Mike Bayer [Wed, 1 Jun 2016 22:07:40 +0000 (18:07 -0400)] 
- Small adjustment made to the batch handling for reflected CHECK
constraints to accommodate for SQLAlchemy 1.1 now reflecting these.
Batch mode still does not support CHECK constraints from the reflected
table as these can't be easily differentiated from the ones created
by types such as Boolean.

9 years agoMerged in kveretennicov/alembic/kveretennicov/-update-cookbook-wording-to-reflect...
Mike Bayer [Tue, 24 May 2016 20:31:49 +0000 (16:31 -0400)] 
Merged in kveretennicov/alembic/kveretennicov/-update-cookbook-wording-to-reflect-that-1463688141291 (pull request #57)

- update Cookbook wording to reflect that it contains multiple recipes now

9 years ago- update Cookbook wording to reflect that it contains multiple recipes now
Konstantin Veretennicov [Thu, 19 May 2016 20:02:26 +0000 (20:02 +0000)] 
- update Cookbook wording to reflect that it contains multiple recipes now

9 years ago- don't use dropfirst if -n is used. on CI the dropfirst is
Mike Bayer [Sun, 24 Apr 2016 18:41:38 +0000 (14:41 -0400)] 
- don't use dropfirst if -n is used.  on CI the dropfirst is
colliding with other builds

9 years agoMerged in Merwok/alembic/Merwok/fix-label-markup-1461358784082 (pull request #56)
Mike Bayer [Fri, 22 Apr 2016 22:27:57 +0000 (18:27 -0400)] 
Merged in Merwok/alembic/Merwok/fix-label-markup-1461358784082 (pull request #56)

Fix label markup

9 years agoFix label markup
Éric Araujo [Fri, 22 Apr 2016 20:59:50 +0000 (20:59 +0000)] 
Fix label markup

9 years ago- 0.8.6 rel_0_8_6
Mike Bayer [Thu, 14 Apr 2016 21:26:57 +0000 (17:26 -0400)] 
- 0.8.6

9 years ago- Errors which occur within the Mako render step are now intercepted
Mike Bayer [Sat, 9 Apr 2016 01:32:07 +0000 (21:32 -0400)] 
- Errors which occur within the Mako render step are now intercepted
and raised as CommandErrors like other failure cases; the Mako
exception itself is written using template-line formatting to
a temporary file which is named in the exception message.
fixes #367

9 years ago- PK names now works w/ sqlite + sqla 1.1
Mike Bayer [Thu, 31 Mar 2016 16:35:17 +0000 (12:35 -0400)] 
- PK names now works w/ sqlite + sqla 1.1

9 years ago- Added a fix to Postgresql server default comparison which first checks
Mike Bayer [Mon, 21 Mar 2016 18:25:49 +0000 (14:25 -0400)] 
- Added a fix to Postgresql server default comparison which first checks
if the text of the default is identical to the original, before attempting
to actually run the default.  This accomodates for default-generation
functions that generate a new value each time such as a uuid function.
fixes #365
- test against uuid_generate_v4() directly, but this requires extensions
to be installed.  should come up with a built in function for this test

9 years ago- repair the previous commit that put the decorators in the wrong place
Mike Bayer [Wed, 16 Mar 2016 22:52:16 +0000 (18:52 -0400)] 
- repair the previous commit that put the decorators in the wrong place
entirely

9 years ago- exclude 0.7.9 here
Mike Bayer [Wed, 16 Mar 2016 20:46:42 +0000 (16:46 -0400)] 
- exclude 0.7.9 here

9 years ago- changelog for #361, fixes #361
Mike Bayer [Wed, 16 Mar 2016 19:25:01 +0000 (15:25 -0400)] 
- changelog for #361, fixes #361
- rename test

9 years agoMerge branch 'master' of https://bitbucket.org/mdomke/alembic into pr55
Mike Bayer [Wed, 16 Mar 2016 19:21:29 +0000 (15:21 -0400)] 
Merge branch 'master' of https://bitbucket.org/mdomke/alembic into pr55

9 years ago- 0.8.6 bump
Mike Bayer [Wed, 16 Mar 2016 19:19:39 +0000 (15:19 -0400)] 
- 0.8.6 bump
- changelog for pr bitbucket:53

9 years agoMerge branch 'mssql_batch_drop_column_fix' of https://bitbucket.org/koniiiik/alembic...
Mike Bayer [Wed, 16 Mar 2016 19:16:33 +0000 (15:16 -0400)] 
Merge branch 'mssql_batch_drop_column_fix' of https://bitbucket.org/koniiiik/alembic into pr53

9 years agoAllow server_default=None for batch operations.
Martin Domke [Wed, 16 Mar 2016 16:35:28 +0000 (17:35 +0100)] 
Allow server_default=None for batch operations.

9 years ago- dont need pytest-cov for setup.py test
Mike Bayer [Thu, 10 Mar 2016 21:51:00 +0000 (16:51 -0500)] 
- dont need pytest-cov for setup.py test

9 years ago- ignore more annoying flake rules we aren't checking yet
Mike Bayer [Thu, 10 Mar 2016 21:47:52 +0000 (16:47 -0500)] 
- ignore more annoying flake rules we aren't checking yet

9 years ago- 0.8.5 rel_0_8_5
Mike Bayer [Wed, 9 Mar 2016 14:36:07 +0000 (09:36 -0500)] 
- 0.8.5

9 years ago- humor me. why are we squashing all mysql DROP DB exceptions?
Mike Bayer [Thu, 3 Mar 2016 15:49:27 +0000 (10:49 -0500)] 
- humor me.  why are we squashing all mysql DROP DB exceptions?

9 years ago- missing import
Mike Bayer [Thu, 3 Mar 2016 15:47:24 +0000 (10:47 -0500)] 
- missing import

9 years ago- use hex idents for DB names
Mike Bayer [Thu, 3 Mar 2016 15:26:29 +0000 (10:26 -0500)] 
- use hex idents for DB names

9 years ago- coverage -> cov
Mike Bayer [Thu, 3 Mar 2016 15:15:32 +0000 (10:15 -0500)] 
- coverage -> cov

9 years ago- updates from SQLA 1.1 for improved concurrency
Mike Bayer [Thu, 3 Mar 2016 14:14:55 +0000 (09:14 -0500)] 
- updates from SQLA 1.1 for improved concurrency

9 years ago- update tox for new SQLA 1.1 style
Mike Bayer [Thu, 3 Mar 2016 14:05:03 +0000 (09:05 -0500)] 
- update tox for new SQLA 1.1 style

9 years agoMerged in __item4__/alembic/docs (pull request #54)
Mike Bayer [Wed, 2 Mar 2016 00:11:08 +0000 (19:11 -0500)] 
Merged in __item4__/alembic/docs (pull request #54)

Fix wrong ReST expression

9 years agoFix wrong ReST expression
Kim Jin Su [Mon, 29 Feb 2016 16:02:19 +0000 (01:02 +0900)] 
Fix wrong ReST expression

9 years ago- happy new year
Mike Bayer [Fri, 29 Jan 2016 16:27:00 +0000 (11:27 -0500)] 
- happy new year

9 years agoMerge remote-tracking branch 'github/pr/25'
Mike Bayer [Fri, 29 Jan 2016 15:51:51 +0000 (10:51 -0500)] 
Merge remote-tracking branch 'github/pr/25'

9 years ago- changelog for pr49, fixes #335
Mike Bayer [Fri, 29 Jan 2016 15:29:42 +0000 (10:29 -0500)] 
- changelog for pr49, fixes #335

9 years agoMerge branch 'ticket_335' of https://bitbucket.org/jessedhillon/alembic into pr49
Mike Bayer [Fri, 29 Jan 2016 15:27:32 +0000 (10:27 -0500)] 
Merge branch 'ticket_335' of https://bitbucket.org/jessedhillon/alembic into pr49

9 years ago- use compat is_type_bound() function
Mike Bayer [Fri, 22 Jan 2016 18:36:53 +0000 (13:36 -0500)] 
- use compat is_type_bound() function

9 years ago- update copyrights within the testing package...
Mike Bayer [Fri, 22 Jan 2016 18:08:33 +0000 (13:08 -0500)] 
- update copyrights within the testing package...

9 years ago- Repaired batch migration support for "schema" types which generate
Mike Bayer [Fri, 22 Jan 2016 18:04:27 +0000 (13:04 -0500)] 
- Repaired batch migration support for "schema" types which generate
constraints, in particular the ``Boolean`` datatype which generates
a CHECK constraint.  Previously, an alter column operation with this
type would fail to correctly accommodate for the CHECK constraint
on change both from and to this type.  In the former case the operation
would fail entirely, in the latter, the CHECK constraint would
not get generated.  Both of these issues are repaired.
fixes #354
- Changing a schema type such as ``Boolean`` to a non-schema type would
emit a drop constraint operation which emits ``NotImplementedError`` for
the MySQL dialect.  This drop constraint operation is now skipped when
the constraint originates from a schema type.
fixes #355

9 years agoFixed mssql_* kwargs in batch_op.drop_column().
Michal Petrucha [Thu, 21 Jan 2016 10:13:56 +0000 (11:13 +0100)] 
Fixed mssql_* kwargs in batch_op.drop_column().

9 years ago- add a note referring to if programmatic config is used,
Mike Bayer [Sun, 27 Dec 2015 23:48:26 +0000 (18:48 -0500)] 
- add a note referring to if programmatic config is used,
logging might not work, fixes #45

9 years agosqla_094 was being imported twice.
Josh Kupershmidt [Wed, 16 Dec 2015 22:22:57 +0000 (17:22 -0500)] 
sqla_094 was being imported twice.

9 years agoFix pylint complaint about logging-not-lazy.
Josh Kupershmidt [Wed, 16 Dec 2015 22:21:03 +0000 (17:21 -0500)] 
Fix pylint complaint about logging-not-lazy.

9 years ago- 0.8.4 rel_0_8_4
Mike Bayer [Tue, 15 Dec 2015 23:20:28 +0000 (18:20 -0500)] 
- 0.8.4

9 years ago- changelog for pullreq bitbucket:51
Mike Bayer [Tue, 15 Dec 2015 22:24:09 +0000 (17:24 -0500)] 
- changelog for pullreq bitbucket:51

9 years agoMerge branch 'prettier_id' of https://bitbucket.org/antti_haapala/alembic
Mike Bayer [Tue, 15 Dec 2015 22:20:23 +0000 (17:20 -0500)] 
Merge branch 'prettier_id' of https://bitbucket.org/antti_haapala/alembic

9 years ago- tests and changelog for pullreq github:20
Mike Bayer [Tue, 15 Dec 2015 22:03:44 +0000 (17:03 -0500)] 
- tests and changelog for pullreq github:20

9 years agoMerge remote-tracking branch 'github/pr/20'
Mike Bayer [Tue, 15 Dec 2015 22:01:01 +0000 (17:01 -0500)] 
Merge remote-tracking branch 'github/pr/20'

9 years agoMerge remote-tracking branch 'github/pr/23'
Mike Bayer [Tue, 15 Dec 2015 21:43:35 +0000 (16:43 -0500)] 
Merge remote-tracking branch 'github/pr/23'

9 years agoMerge remote-tracking branch 'github/pr/22'
Mike Bayer [Tue, 15 Dec 2015 21:43:32 +0000 (16:43 -0500)] 
Merge remote-tracking branch 'github/pr/22'

9 years agoGet rid of duplicate `reraise` and `raise_from_cause` definitions.
Josh Kupershmidt [Tue, 15 Dec 2015 20:59:21 +0000 (15:59 -0500)] 
Get rid of duplicate `reraise` and `raise_from_cause` definitions.

9 years agoglobal keyword here is unnecesary
Josh Kupershmidt [Tue, 15 Dec 2015 20:21:09 +0000 (15:21 -0500)] 
global keyword here is unnecesary

9 years ago- Batch mode generates a FOREIGN KEY constraint that is self-referential
Mike Bayer [Tue, 15 Dec 2015 17:37:04 +0000 (12:37 -0500)] 
- Batch mode generates a FOREIGN KEY constraint that is self-referential
using the ultimate table name, rather than ``_alembic_batch_temp``.
When the table is renamed from ``_alembic_batch_temp`` back to the
original name, the FK now points to the right name.  This
will **not** work if referential integrity is being enforced (eg. SQLite
"PRAGMA FOREIGN_KEYS=ON") since the original table is dropped and
the new table then renamed to that name, however this is now consistent
with how foreign key constraints on **other** tables already operate
with batch mode; these don't support batch mode if referential integrity
is enabled in any case.
fixes #345

9 years ago- use pymysql here
Mike Bayer [Tue, 15 Dec 2015 17:34:56 +0000 (12:34 -0500)] 
- use pymysql here

9 years ago- existing_server_default is not used to drop the previous
Mike Bayer [Thu, 10 Dec 2015 17:15:23 +0000 (12:15 -0500)] 
- existing_server_default is not used to drop the previous
schema type constraint; existing_type is.  I haven't checked to
see if this changed at some point but that's what the source code
right now says.

9 years ago- document that the value we pass to set_section_option and set_main_option
Mike Bayer [Tue, 8 Dec 2015 20:01:15 +0000 (15:01 -0500)] 
- document that the value we pass to set_section_option and set_main_option
is in fact subject to variable interpolation, so raw percents must be doubled.
- add a test demonstrating the use of interpolation.

9 years ago- Added a type-level comparator that distinguishes :class:`.Integer`,
Mike Bayer [Sat, 5 Dec 2015 20:02:20 +0000 (15:02 -0500)] 
- Added a type-level comparator that distinguishes :class:`.Integer`,
:class:`.BigInteger`, and :class:`.SmallInteger` types and
dialect-specific types; these all have "Integer" affinity so previously
all compared as the same.
fixes #341

9 years agoprettier revision identifier (always exatly 12 hex digits long) with better guarantee...
antti_haapala [Sun, 29 Nov 2015 16:27:57 +0000 (16:27 +0000)] 
prettier revision identifier (always exatly 12 hex digits long) with better guaranteed entropy (the last 48 bits of a uuid4 are all random). Works everywhere where uuid module exists (2.5 -)

Rationale: with the current code most revision ids start with 1, 2, 3 or 4, and there are far more collisions with 2 initial digits than necessary (cumbersome to check a file by revision on command line and such). So instead of revision ids that are 1-12 digits long with ~45 bits of information, lets just have them 12 digits long and contain full 48 bits of info.

9 years ago- add py35
Mike Bayer [Sun, 22 Nov 2015 21:03:43 +0000 (16:03 -0500)] 
- add py35

9 years ago- Fixed bug where the ``server_default`` parameter of ``alter_column()``
Mike Bayer [Sun, 22 Nov 2015 20:25:00 +0000 (15:25 -0500)] 
- Fixed bug where the ``server_default`` parameter of ``alter_column()``
would not function correctly in batch mode.
fixes #338