summaryrefslogtreecommitdiff
path: root/migrate/changeset/ansisql.py
Commit message (Collapse)AuthorAgeFilesLines
* Retire github mirror, repo moved to opendevHEADmasterJim Rollenhagen2019-09-261-311/+0
|
* Don't use deprecated / non-functional "force" parameterMike Bayer2019-01-181-10/+7
| | | | | | | | | | | The "force" parameter in SQLAlchemy IdentifierPreparer.quote() has been a no-op since 0.9 in https://github.com/sqlalchemy/sqlalchemy/commit/031ef0807838842a827135dbace760da7aec215e, which was six years ago. In SQLAlchemy 1.3 this parameter will be removed entirely. Bump requirements to 0.9 series here and remove usage of the "force" flag. Change-Id: I4492df2e7d2075fefbf13d6782de11f7d402f6b8
* Port to Python3Cyril Roelandt2014-04-091-3/+4
| | | | | | | | | | | | | | | | | | Brief summary of the modifications: * Use six for compatibility with both Python 2 and 3; * Replace UserDict.DictMixin with collections.MutableMapping; * Fix relative imports; * Use test-requirements.txt for requirements that are common to both Python 2 and 3, and test-requirements-py{2,3}.txt for version-specific requirements; * Miscellaneous fixes. * Use a specific test_db_py3.cfg file for Python 3, that only runs tests on sqlite. Thanks to Victor Stinner who co-wrote this patch. Change-Id: Ia6dc536c39d274924c21fd5bb619e8e5721e04c4 Co-Authored-By: Victor Stinner <victor.stinner@enovance.com>
* Use native quote attribute introduced in sqla 0.9Thomas Goirand2014-03-051-6/+9
| | | | | | | | | In SQLA 0.9 there is now a native .quote attribute on many objects. Conditionally use this instead of the old method if the attribute exists, to remove deprecation messages (and prepare for when the other way will be fully removed). Change-Id: I3c5fada13e044c1c4102acc0455226ce1524f2e2
* UniqueConstraint named and escaped twiceThomas Goirand2014-03-021-1/+1
| | | | | | | | This patch fixes get_constraint_name in the ANSIConstraintCommon class. It's part of the fixes needed for SQLA 0.9.x compat. Change-Id: I1f1648af48f459bd18f99bb42fa9a272186fb37d
* decouple index name generation from sqlalchemy versionPádraig Brady2013-09-231-15/+19
| | | | | | | | | | In commit 0.7.2-16-gc670d1d the _index_identifier() implementation was copied from sqlalchemy, as that function was renamed in sqlalchemy 0.8. Instead handle call the renamed function when appropriate, to decouple ourselves from the sqlalchemy implementation. Change-Id: I97b22c20d96758fc5b6bd55318218edb26c5b5d0
* added bugfixes for 0.8Josip Delic2013-07-111-0/+14
|
* drop SQLAlchemy < 0.6 compatibility codeJan Dittberner2011-10-281-86/+20
|
* no special treatment for SQLA 0.7 required in migrate.changeset.ansisqlJan Dittberner2011-05-271-8/+4
|
* remove commented codeJan Dittberner2011-05-261-5/+0
|
* fix unit test for adding new columns with foreign keysJan Dittberner2011-05-261-3/+12
|
* use _index_identifier instead of _validate_identifier ifJan Dittberner2010-11-091-5/+18
| | | | | _validate_identifier does not exist in migrate/changeset/ansisql.py remove executable bits from migrate/tests/fixture/warnings.py
* Fix issue 94 - it was impossible to add a column with a non-unique index.chrisw2010-09-091-4/+1
| | | Also implement more functionality with unique and foreign key constrains for sqlite.
* move all exception classes to migrate.exceptionsiElectric2010-09-071-2/+4
|
* fix unittestsJan Dittberner2010-07-041-2/+1
| | | * tested with Python 2.6, SQLAlchemy 0.6.1, PostgreSQL, MySQL and SQLite
* SA06 tests fix, thanks to Mike BayeriElectric2010-05-021-0/+7
|
* add support for SA 0.6 by Michael BayeriElectric2009-06-291-57/+108
|
* - completely refactored ColumnDelta to extract differences between ↵iElectric2009-06-271-41/+9
| | | | | | | | columns/parameters (also fixes issue #23) - fixed some bugs (passing server_default) on column.alter - updated tests, specially ColumnDelta and column.alter - introduced alter_metadata which can preserve altering existing objects if False (defaults to True) - updated documentation
* adding basic support for firebird, fixes #55iElectric2009-06-221-2/+5
|
* finally, tests pass for all supported dialectsiElectric2009-06-211-4/+1
|
* some more PEP8 loveiElectric2009-06-211-5/+10
|
* updated changeset tests. whole package is finally PEP8. fixed mysql ↵iElectric2009-06-201-78/+63
| | | | tests&bugs. updated docs where apropriate. changeset test coverage almost at 100%
* - refactor migrate.changeset;iElectric2009-06-161-85/+72
| | | | | | | - visitors are refactored to be more unified - constraint module is refactored, CheckConstraint is added - documentation is partialy updated, dialect support table is added (unfinished) - test_constraint was updated NOTE: oracle and mysql were not tested, *may be broken*
* update docs, delete obsolete code in constraintsiElectric2009-06-121-51/+32
|
* use sqlalchemy preparer to do SQL quote formatting. this is a raw change, ↵iElectric2009-06-111-38/+30
| | | | tests are yet to be written
* lipstick changesiElectric2009-06-101-1/+1
|
* add support for ondelete and oncascade to ANSI-SQL foreign key creationjan.dittberner2009-02-201-0/+4
| | | address Issue 48
* cleanup in migrate.changeset.ansisql and api doc updatejan.dittberner2009-01-251-43/+37
| | | | | remove old commented code in ansisql.py add some ReST docstrings in ansisql.py add migrate.changeset.constraint link ins api.rst
* make migrate.schema.ansisql PEP8 clean and add some sphinx docstringsjan.dittberner2009-01-251-105/+150
|
* first sphinx docstringsjan.dittberner2009-01-251-1/+5
|
* support for SA 0.5.1.percious172009-01-191-8/+33
| | | | | | | Only postgres is working fully. MySQL has 2 broken tests. sqlite has about 4 broken tests.
* integrate patch for supporting CheckConstraints by srittau.jan.dittberner2009-01-101-0/+8
| | | | Fixes Issue #31 needs a test case
* fixed bug in create column where foreign keys were being left out.percious172008-12-161-5/+9
|
* print statement removalpercious172008-12-021-2/+0
|
* most of the tests are now working with nose.percious172008-12-021-1/+3
|
* modified altering of columns to support postgres.percious172008-11-271-3/+3
|
* missed a postgres identifier quoting on renamingpercious172008-11-271-5/+3
|
* added hook functions which allow the dialects to specify how to indicate ↵percious172008-11-261-4/+16
| | | | | identifiers, as this is different in postgres. Also, this fix includes a fix for modification of columns which have tables definied within a schema. This was also broken in postgres.
* integrate patch for Issue 33jan.dittberner2008-09-161-1/+1
|
* add support for SA 0.5christian.simms2008-08-281-8/+4
|
* make import of sqlalchemy's SchemaGenerator work regardless of previous importschristian.simms2008-02-181-1/+1
|
* integrated patch by Christian Simms posted at ↵jan.dittberner2008-02-141-11/+12
| | | | | | http://groups.google.com/group/migrate-users/browse_thread/thread/952a2185baf70c4d fix all test cases for sqlalchemy>=0.4 and still works with sqlalchemy>=0.3.10 fixes #9
* moved trunk, branches and tags to project rootjan.dittberner2008-02-061-0/+280
fixes Issue #5