diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2015-02-20 19:20:53 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2015-02-20 19:20:53 -0500 |
commit | 2108076362cc76130ae61e14c7a0120a1f0a59c8 (patch) | |
tree | f647c743f0ef91f5969915948bd004dfa5e43f39 /tests/requirements.py | |
parent | e8a0c740b17100e6e366a7484d58d5b26f68c094 (diff) | |
download | alembic-2108076362cc76130ae61e14c7a0120a1f0a59c8.tar.gz |
- Fixed bug where MySQL backend would report dropped unique indexes
and/or constraints as both at the same time. This is because
MySQL doesn't actually have a "unique constraint" construct that
reports differently than a "unique index", so it is present in both
lists. The net effect though is that the MySQL backend will report
a dropped unique index/constraint as an index in cases where the object
was first created as a unique constraint, if no other information
is available to make the decision. This differs from other backends
like Postgresql which can report on unique constraints and
unique indexes separately.
fixes #276
Diffstat (limited to 'tests/requirements.py')
-rw-r--r-- | tests/requirements.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/requirements.py b/tests/requirements.py index 37fd4e0..0304919 100644 --- a/tests/requirements.py +++ b/tests/requirements.py @@ -49,3 +49,7 @@ class DefaultRequirements(SuiteRequirements): def fk_names(self): """foreign key constraints always have names in the DB""" return exclusions.fails_on('sqlite') + + @property + def reflects_unique_constraints_unambiguously(self): + return exclusions.fails_on("mysql") |