| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Fix dropping of indexed columns in sqlite/sa08 | Roman Podolyaka | 2013-10-18 | 2 | -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 version | Pádraig Brady | 2013-09-23 | 1 | -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.8 | Josip Delic | 2013-07-11 | 1 | -0/+14 |
| | | |||||
| * | merge e5bd2821eea8 from https://code.google.com/r/alyazdi-patches/ | Jan Dittberner | 2011-10-28 | 1 | -1/+1 |
| |\ | | | | | (fixes issue 125) | ||||
| | * | Fix for issue #125, create the table on the same connection as the ALTER and ↵ | al.yazdi@gmail.com | 2011-10-26 | 1 | -1/+1 |
| | | | | | | | | | INSERT happen | ||||
| * | | drop SQLAlchemy < 0.6 compatibility code | Jan Dittberner | 2011-10-28 | 9 | -161/+41 |
| | | | |||||
| * | | fix SQLAlchemy 0.6.x compatibility of issue 128 patch | Jan Dittberner | 2011-10-28 | 1 | -1/+11 |
| | | | |||||
| * | | fix issue 128: "table rename failure with sqlalchemy 0.7.x" | markbmc@gmail.com | 2011-10-28 | 1 | -7/+1 |
| |/ | |||||
| * | fix column.create() properly | Jan Dittberner | 2011-05-27 | 1 | -1/+4 |
| | | |||||
| * | no special treatment for SQLA 0.7 required in migrate.changeset.ansisql | Jan Dittberner | 2011-05-27 | 1 | -8/+4 |
| | | |||||
| * | remove commented code | Jan Dittberner | 2011-05-26 | 1 | -5/+0 |
| | | |||||
| * | fix unit test for adding new columns with foreign keys | Jan Dittberner | 2011-05-26 | 1 | -3/+12 |
| | | |||||
| * | use Table._columns to remove columns (addresses #112) | Jan Dittberner | 2011-05-25 | 2 | -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 Withers | 2011-02-11 | 1 | -14/+38 |
| | | | | | | the tests. So, it's a private API now... | ||||
| * | try to get firebird stuff working with 0.6.6 | Chris Withers | 2011-02-10 | 1 | -1/+6 |
| | | |||||
| * | remove the alter_metadata feature | Chris Withers | 2011-02-10 | 2 | -67/+24 |
| | | |||||
| * | work around firebird's insistence that indexes and constraints are dropped ↵ | Chris Withers | 2011-02-10 | 1 | -7/+21 |
| | | | | | before columns that are references by them. | ||||
| * | fix sqlite column dropper now that the table is only modified after the ↵ | Chris Withers | 2011-02-10 | 1 | -0/+9 |
| | | | | | visitor is run | ||||
| * | Only alter the SA objects after running the visitor, so the visitor may inspect | Chris Withers | 2011-02-10 | 1 | -2/+1 |
| | | |||||
| * | make migrate.changeset.constraint.ForeignKeyConstraint.autoname work | Jan Dittberner | 2010-11-09 | 1 | -3/+11 |
| | | | | with SQLAlchemy 0.5 and 0.6 | ||||
| * | use _index_identifier instead of _validate_identifier if | Jan Dittberner | 2010-11-09 | 1 | -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 in | Jan Dittberner | 2010-11-07 | 1 | -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. | chrisw | 2010-09-09 | 3 | -19/+25 |
| | | | | Also implement more functionality with unique and foreign key constrains for sqlite. | ||||
| * | implement column adding with foreign keys on sqlite | chrisw | 2010-09-09 | 1 | -7/+19 |
| | | |||||
| * | Fix bug with column dropping involving foreign keys. | chrisw | 2010-09-09 | 1 | -0/+18 |
| | | | | Bonus: remove_from_table now understands foreign keys | ||||
| * | fix for issue 96: deleting a column in sqlite shouldn't delete all indexes | chrisw | 2010-09-09 | 2 | -10/+16 |
| | | | | bonus: remove_from_table now removes indexes | ||||
| * | attempt at improving the api docs a little | chrisw | 2010-09-08 | 1 | -19/+25 |
| | | |||||
| * | - capture deprecation warnings and assert they re as they should be | chrisw | 2010-09-07 | 1 | -2/+5 |
| | | | | - re-word alter_column deprecation warning to make more sense | ||||
| * | move all exception classes to migrate.exceptions | iElectric | 2010-09-07 | 8 | -38/+20 |
| | | |||||
| * | fix tests on python2.7 | iElectric | 2010-07-14 | 1 | -2/+5 |
| | | |||||
| * | small doc correction; fixes #67 | iElectric | 2010-07-11 | 1 | -1/+4 |
| | | |||||
| * | better document summary of changeset actions | iElectric | 2010-07-11 | 1 | -12/+7 |
| | | |||||
| * | adding connection keyword to ORM methods | iElectric | 2010-07-11 | 3 | -19/+41 |
| | | |||||
| * | fix unittests | Jan Dittberner | 2010-07-04 | 1 | -2/+1 |
| | | | | * tested with Python 2.6, SQLAlchemy 0.6.1, PostgreSQL, MySQL and SQLite | ||||
| * | move to unittest2, update README for testing instructions | iElectric | 2010-06-20 | 1 | -0/+1 |
| | | |||||
| * | add firebird to test_db.cfg.tmpl; fix bug when dropping a column in ↵ | iElectric | 2010-05-11 | 1 | -0/+13 |
| | | | | | firebird: also drop related constraint or index | ||||
| * | fix MySQL failing tests with autoincrement | iElectric | 2010-05-02 | 1 | -4/+6 |
| | | |||||
| * | SA06 tests fix, thanks to Mike Bayer | iElectric | 2010-05-02 | 1 | -0/+7 |
| | | |||||
| * | unified warnings, use compare columns in tests | iElectric | 2010-05-01 | 1 | -2/+4 |
| | | |||||
| * | move warning exceptions to right module | iElectric | 2010-05-01 | 2 | -1/+5 |
| | | |||||
| * | deprecate two columns alter | iElectric | 2010-04-30 | 1 | -0/+5 |
| | | |||||
| * | partly fix SA0.6 tests on postgres | iElectric | 2010-04-24 | 1 | -2/+2 |
| | | |||||
| * | fix documentation meta.bind(engine) -> meta.bind = engine; thanks mvt | iElectric | 2010-03-12 | 1 | -3/+0 |
| | | |||||
| * | more SA06 fixes | iElectric | 2010-02-05 | 1 | -2/+2 |
| | | |||||
| * | SA06 fixes | hudson@fubarite.fubar.si | 2010-02-05 | 1 | -2/+9 |
| | | |||||
| * | apply Emil Kroymann's patch for Issue 75 | emil.kroymann | 2010-01-07 | 2 | -1/+10 |
| | | |||||
| * | merge | iElectric | 2009-08-10 | 2 | -1/+10 |
| |\ | |||||
| | * | add disable_logging option | iElectric | 2009-07-10 | 1 | -1/+1 |
| | | | |||||
| | * | add populate_default kwarg to column.create, fixes issue #50 | iElectric | 2009-07-01 | 1 | -0/+9 |
| | | | |||||
| | * | convert svn to hg | iElectric | 2009-06-30 | 12 | -0/+1688 |
| | | |||||
