summaryrefslogtreecommitdiff
path: root/migrate/changeset
Commit message (Collapse)AuthorAgeFilesLines
* Fix dropping of indexed columns in sqlite/sa08Roman Podolyaka2013-10-182-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | Version 0.8 of SQLAlchemy added support of indexes on expressions in addition to plain table columns, which changed the way indexes are created. This broke support of dropping columns of composite indexes for SQLite: due to limitations of ALTER in SQLite every time a column is dropped, we recreate the whole table without the given column; if a column is a part of a composite index, we change the index definition to omit that column and then indexes are recreated too. SQLAlchemy versions starting from 0.8 no more pay attention to 'columns' attribute of Index instances when generating DDL for indexes, so when one of columns of a composite index is dropped, we try to create a new index on the column that doesn't exist anymore, which of course fails. Closes-Bug: #1241038 Change-Id: I777b8ce36e36f49bfb0889908811a063cf1a527b
* 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
|
* merge e5bd2821eea8 from https://code.google.com/r/alyazdi-patches/Jan Dittberner2011-10-281-1/+1
|\ | | | | (fixes issue 125)
| * Fix for issue #125, create the table on the same connection as the ALTER and ↵al.yazdi@gmail.com2011-10-261-1/+1
| | | | | | | | INSERT happen
* | drop SQLAlchemy < 0.6 compatibility codeJan Dittberner2011-10-289-161/+41
| |
* | fix SQLAlchemy 0.6.x compatibility of issue 128 patchJan Dittberner2011-10-281-1/+11
| |
* | fix issue 128: "table rename failure with sqlalchemy 0.7.x"markbmc@gmail.com2011-10-281-7/+1
|/
* fix column.create() properlyJan Dittberner2011-05-271-1/+4
|
* 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 Table._columns to remove columns (addresses #112)Jan Dittberner2011-05-252-2/+6
| | | | | | - add SQLA_07 predicate in migrate/changeset/__init__.py - use Table._columns instead of Table.c when removing columns in migrate/changeset/schema.py
* Bring back alter_metadata on ColumnDelta: it seems intertwined with a lot of ↵Chris Withers2011-02-111-14/+38
| | | | | the tests. So, it's a private API now...
* try to get firebird stuff working with 0.6.6Chris Withers2011-02-101-1/+6
|
* remove the alter_metadata featureChris Withers2011-02-102-67/+24
|
* work around firebird's insistence that indexes and constraints are dropped ↵Chris Withers2011-02-101-7/+21
| | | | before columns that are references by them.
* fix sqlite column dropper now that the table is only modified after the ↵Chris Withers2011-02-101-0/+9
| | | | visitor is run
* Only alter the SA objects after running the visitor, so the visitor may inspectChris Withers2011-02-101-2/+1
|
* make migrate.changeset.constraint.ForeignKeyConstraint.autoname workJan Dittberner2010-11-091-3/+11
| | | with SQLAlchemy 0.5 and 0.6
* 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 generation of foreign key constraint name inJan Dittberner2010-11-071-2/+2
| | | | | | | migrate.changeset.constraint.ForeignKeyConstraint.autoname use <table>_<firstcol>_fkey instead of <table>_<reftable>_fkey Fixes Issue 101
* Fix issue 94 - it was impossible to add a column with a non-unique index.chrisw2010-09-093-19/+25
| | | Also implement more functionality with unique and foreign key constrains for sqlite.
* implement column adding with foreign keys on sqlitechrisw2010-09-091-7/+19
|
* Fix bug with column dropping involving foreign keys.chrisw2010-09-091-0/+18
| | | Bonus: remove_from_table now understands foreign keys
* fix for issue 96: deleting a column in sqlite shouldn't delete all indexeschrisw2010-09-092-10/+16
| | | bonus: remove_from_table now removes indexes
* attempt at improving the api docs a littlechrisw2010-09-081-19/+25
|
* - capture deprecation warnings and assert they re as they should bechrisw2010-09-071-2/+5
| | | - re-word alter_column deprecation warning to make more sense
* move all exception classes to migrate.exceptionsiElectric2010-09-078-38/+20
|
* fix tests on python2.7iElectric2010-07-141-2/+5
|
* small doc correction; fixes #67iElectric2010-07-111-1/+4
|
* better document summary of changeset actionsiElectric2010-07-111-12/+7
|
* adding connection keyword to ORM methodsiElectric2010-07-113-19/+41
|
* fix unittestsJan Dittberner2010-07-041-2/+1
| | | * tested with Python 2.6, SQLAlchemy 0.6.1, PostgreSQL, MySQL and SQLite
* move to unittest2, update README for testing instructionsiElectric2010-06-201-0/+1
|
* add firebird to test_db.cfg.tmpl; fix bug when dropping a column in ↵iElectric2010-05-111-0/+13
| | | | firebird: also drop related constraint or index
* fix MySQL failing tests with autoincrementiElectric2010-05-021-4/+6
|
* SA06 tests fix, thanks to Mike BayeriElectric2010-05-021-0/+7
|
* unified warnings, use compare columns in testsiElectric2010-05-011-2/+4
|
* move warning exceptions to right moduleiElectric2010-05-012-1/+5
|
* deprecate two columns alteriElectric2010-04-301-0/+5
|
* partly fix SA0.6 tests on postgresiElectric2010-04-241-2/+2
|
* fix documentation meta.bind(engine) -> meta.bind = engine; thanks mvtiElectric2010-03-121-3/+0
|
* more SA06 fixesiElectric2010-02-051-2/+2
|
* SA06 fixeshudson@fubarite.fubar.si2010-02-051-2/+9
|
* apply Emil Kroymann's patch for Issue 75emil.kroymann2010-01-072-1/+10
|
* mergeiElectric2009-08-102-1/+10
|\
| * add disable_logging optioniElectric2009-07-101-1/+1
| |
| * add populate_default kwarg to column.create, fixes issue #50iElectric2009-07-011-0/+9
| |
| * convert svn to hgiElectric2009-06-3012-0/+1688
|