Jan Dittberner
73796f3e54
fix generation of foreign key constraint name in
...
migrate.changeset.constraint.ForeignKeyConstraint.autoname
use <table>_<firstcol>_fkey instead of <table>_<reftable>_fkey
Fixes Issue 101
2010-11-07 22:19:36 +01:00
chrisw
adf4113a0b
Fix issue 94 - it was impossible to add a column with a non-unique index.
...
Also implement more functionality with unique and foreign key constrains for sqlite.
2010-09-09 15:38:42 +01:00
chrisw
a085ffa590
implement column adding with foreign keys on sqlite
2010-09-09 13:58:41 +01:00
chrisw
a7c0c18a52
Fix bug with column dropping involving foreign keys.
...
Bonus: remove_from_table now understands foreign keys
2010-09-09 11:53:08 +01:00
chrisw
5cf42fbf76
fix for issue 96: deleting a column in sqlite shouldn't delete all indexes
...
bonus: remove_from_table now removes indexes
2010-09-09 09:15:28 +01:00
chrisw
aef73ed13e
attempt at improving the api docs a little
2010-09-08 15:48:28 +01:00
chrisw
cade5fb261
- capture deprecation warnings and assert they re as they should be
...
- re-word alter_column deprecation warning to make more sense
2010-09-07 19:04:12 +01:00
iElectric
653e723ce1
move all exception classes to migrate.exceptions
2010-09-07 02:25:29 +02:00
iElectric
878c673ca8
fix tests on python2.7
2010-07-14 19:04:44 +02:00
iElectric
811201d47b
small doc correction; fixes #67
2010-07-11 18:16:51 +02:00
iElectric
201fe50e6c
better document summary of changeset actions
2010-07-11 17:45:29 +02:00
iElectric
a3d3470d5e
adding connection keyword to ORM methods
2010-07-11 17:22:28 +02:00
Jan Dittberner
e820261f29
fix unittests
...
* tested with Python 2.6, SQLAlchemy 0.6.1, PostgreSQL, MySQL and SQLite
2010-07-04 12:33:28 +02:00
iElectric
8b0072b3e8
move to unittest2, update README for testing instructions
2010-06-20 15:29:16 +02:00
iElectric
6e025c4a4d
add firebird to test_db.cfg.tmpl; fix bug when dropping a column in firebird: also drop related constraint or index
2010-05-11 22:52:07 +02:00
iElectric
ece9ffed35
fix MySQL failing tests with autoincrement
2010-05-02 20:31:50 +02:00
iElectric
81f447ef77
SA06 tests fix, thanks to Mike Bayer
2010-05-02 03:03:03 +02:00
iElectric
43e0c3caf2
unified warnings, use compare columns in tests
2010-05-01 08:32:41 +02:00
iElectric
feab45798f
move warning exceptions to right module
2010-05-01 07:38:33 +02:00
iElectric
cef2abb30f
deprecate two columns alter
2010-04-30 08:34:30 +02:00
iElectric
e4868841d5
partly fix SA0.6 tests on postgres
2010-04-24 21:40:16 +02:00
iElectric
384f045de8
fix documentation meta.bind(engine) -> meta.bind = engine; thanks mvt
2010-03-12 16:23:01 +01:00
iElectric
3dfb8c8a29
more SA06 fixes
2010-02-05 05:06:48 +01:00
hudson@fubarite.fubar.si
f9159b6851
SA06 fixes
2010-02-05 04:25:15 +01:00
emil.kroymann
7912af18ed
apply Emil Kroymann's patch for Issue 75
2010-01-07 20:10:47 +01:00
iElectric
ccf7be3372
merge
2009-08-10 12:24:01 +02:00
iElectric
7cb4b6363c
applying patch for issue #61 by Michael Bayer
2009-07-13 18:45:52 +02:00
iElectric
a186d2edf2
add disable_logging option
2009-07-10 19:42:42 +02:00
iElectric
e765caaef4
add populate_default kwarg to column.create, fixes issue #50
2009-07-01 04:01:13 +02:00
iElectric
9cedba8b8b
convert svn to hg
2009-06-30 22:50:18 +02:00
iElectric
de3c53989d
add support for SA 0.6 by Michael Bayer
2009-06-29 10:18:03 +00:00
iElectric
08e5d10786
updated changeset documentation, added alter_metadata to all schema classes
2009-06-28 08:32:27 +00:00
iElectric
75e93aa410
add not supported exceptions for sqlite constraints
2009-06-27 14:33:40 +00:00
iElectric
5a06b033d2
always return delta when using alter constructs
2009-06-27 14:27:05 +00:00
iElectric
9f7ab96881
- completely refactored ColumnDelta to extract differences between 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
2009-06-27 14:13:27 +00:00
iElectric
a8c31eb25f
adding basic support for firebird, fixes #55
2009-06-22 10:22:06 +00:00
iElectric
17cc5f36e6
finally, tests pass for all supported dialects
2009-06-21 12:51:33 +00:00
iElectric
672d9bd576
some more PEP8 love
2009-06-21 09:17:23 +00:00
iElectric
4b50def6ea
fix bug when initializing CheckConstraint
2009-06-20 22:51:07 +00:00
iElectric
cde0f9b52d
updated changeset tests. whole package is finally PEP8. fixed mysql tests&bugs. updated docs where apropriate. changeset test coverage almost at 100%
2009-06-20 22:33:03 +00:00
iElectric
7eafe744c2
- refactor migrate.changeset;
...
- 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*
2009-06-16 15:17:33 +00:00
iElectric
cc82a1ad12
update docs, delete obsolete code in constraints
2009-06-12 22:43:02 +00:00
iElectric
8a8b1d2366
use sqlalchemy preparer to do SQL quote formatting. this is a raw change, tests are yet to be written
2009-06-11 22:27:38 +00:00
iElectric
15cb31cea6
lipstick changes
2009-06-10 14:00:53 +00:00
jan.dittberner
d85115c611
add support for ondelete and oncascade to ANSI-SQL foreign key creation
...
address Issue 48
2009-02-20 18:24:44 +00:00
jan.dittberner
5ecec7c680
mark ALTER TABLE ADD FOREIGN KEY as unsupported by SQLite
...
update corresponding test case
2009-02-18 20:08:37 +00:00
jan.dittberner
8900c512d4
PEP-8 clean migrate.changeset, updated CHANGELOG, updated api.rst
...
- code cleanup in the remaining migrate.changeset files
- add migrate.changeset.exceptions and migrate.changeset.schema to api.rst
- add more information to CHANGELOG
2009-01-25 16:28:06 +00:00
jan.dittberner
acb2e7bd00
cleanup in migrate.changeset.ansisql and api doc update
...
remove old commented code in ansisql.py
add some ReST docstrings in ansisql.py
add migrate.changeset.constraint link ins api.rst
2009-01-25 15:00:24 +00:00
jan.dittberner
60409d80cd
revert stupid test case breaking change
2009-01-25 13:40:55 +00:00
jan.dittberner
eb00570991
make migrate.changeset.databases PEP-8 clean and add it to the API docs
2009-01-25 12:52:33 +00:00