summaryrefslogtreecommitdiff
path: root/migrate/tests/changeset/test_constraint.py
Commit message (Collapse)AuthorAgeFilesLines
* Retire github mirror, repo moved to opendevHEADmasterJim Rollenhagen2019-09-261-299/+0
|
* Update tests and reqs for SQLA 1.0Mike Bayer2015-07-011-1/+2
| | | | | | | Lift the requirements to support SQLAlchemy 1.0. Two tests were calling upon revised APIs and required adjustment. Change-Id: Ic91a91bb3c915027b522eace302f2ed074233294
* allow dropping fkeys with sqliteMatt Riedemann2015-02-201-1/+1
| | | | | | | | | | | | | This implements the ability to drop foreign keys with sqlite. It's basically the same implementation used for dropping unique constraints so the common code is refactored. The existing FKey test that was skipping sqlite is no longer skipped to show this works. Change-Id: Idaaf4229e34af4c21c3bcead4b4e22491d24238e Closes-Bug: #1423955
* Move patch from oslo to drop unique constraints with sqliteMatt Riedemann2014-04-151-1/+1
| | | | | | | | | | | | | | | | | | | oslo-incubator commit 3f503faac for making sqlite work with dropping unique constraints in database migrations. This was made in oslo-incubator since at the time sqlalchemy-migrate was not in stackforge. Now that we can update sqlalchemy-migrate, move the patch over from oslo. This change also adds the support for the case that a unique constraint is dropped because the column it's on is dropped. Note that there are already unit tests that cover dropping a unique constraint directly and implicitly via dropping a column that is in the unique constraint. Related-Bug: #1307266 Change-Id: I5ee8082a83aebf66f6e1dacb093ed79e13f73f5e
* tests: Replace "self.assert_" by "self.assertTrue"Cyril Roelandt2014-03-311-6/+6
| | | | | | | | The assert_() method is deprecated and can be safely replaced by assertTrue(). This patch makes sure that running the tests does not fill the screen with warnings. Change-Id: I8966b7f7a44f1573a4d2c398717bfc68ae40b197
* Eradicate trailing whitespaceDavid Ripton2014-02-261-3/+3
| | | | | | | | | | Remove all trailing spaces and tabs in every file in the project. People have editors configured to do this, which causes them to accidentally make little whitespace changes in unrelated commits, which makes those commits harder to review. Better to fix them all at once. Change-Id: I17d89f55f41d8599e0ab1a31f646cd161289703e
* Updated to OpenStack Build stuff.Monty Taylor2013-07-111-13/+13
|
* drop SQLAlchemy < 0.6 compatibility codeJan Dittberner2011-10-281-4/+1
|
* SQLAlchemy 0.7's column.foreign_keys is a set and has no _list (addresses #112)Jan Dittberner2011-05-251-8/+32
|
* move all exception classes to migrate.exceptionsiElectric2010-09-071-1/+1
|
* update README and fix last bugsiElectric2010-07-081-2/+2
|
* log database name when running tests; firebug does not support DROP ↵iElectric2010-07-081-7/+2
| | | | CONSTRAINT CASCADE
* move tests/ directory into migrate/tests (much better form) and fix all ↵Bob Farrell2010-06-101-0/+282
import lines and other minor issues