| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Retire github mirror, repo moved to opendevHEADmaster | Jim Rollenhagen | 2019-09-26 | 4 | -296/+0 |
| | | |||||
| * | script: strip comments in SQL statements | Ihar Hrachyshka | 2015-01-14 | 1 | -0/+1 |
| | | | | | | | | | | Regular expression does not match correctly against statements that contain comments at their start. So strip those comments first (and whitespaces, while we are at it). Change-Id: Iad9b544bf995374d76cab1e125658aae2f8511f4 Closes-Bug: #1410494 | ||||
| * | Ignore transaction management statements in SQL scripts | Ihar Hrachyshka | 2015-01-09 | 1 | -1/+18 |
| | | | | | | | | | | | | | | | | | | | | | Now that we don't run SQL script with a single .execute() call, transaction management statements (BEGIN, COMMIT, END) fail with operational error. Ignore them if occurred in a script. All in all, transactions are managed by SQLAlchemy-migrate itself, so there is no reason for the calling code to pass those statements in a SQL script. Warn user about the statements that are ignored. The ideal response to such a warning from library users is removing those redundant transaction management statements from their scripts. Note: ROLLBACK is not ignored even though it's one of transaction management statements because its usage in migration scripts is insane anyway, and we're better fail on it and not (almost) silently ignore it. Change-Id: Ie4179c0e9341d42656d66821aaac23f8dcd33927 Closes-bug: 1368391 | ||||
| * | SqlScript: execute multiple statements one by one0.9.2 | Ihar Hrachyshka | 2014-08-23 | 1 | -8/+10 |
| | | | | | | | | | | | | | | | | | | Some drivers [f.e. MySQL Connector] do not like multiple statements being passed to .execute(). They require either passing multi=True parameter to .execute() that is not DB-API 2.0 defined, or executing those statements one by one. For that patch, I've chosen the second option to stay away from driver specific hacks. Also removed SQLite hack that seems to be related to the same multiple statements issue. blueprint enable-mysql-connector Change-Id: Ic6d53ed1fef8aee9471f3540f06b39cd5ee4ef82 | ||||
| * | Make sure we don't throw away exception on SQL script failure | Ihar Hrachyshka | 2014-08-23 | 1 | -1/+2 |
| | | | | | | | | | | If SQL script failed, we don't currently log the failure anywhere, so users have hard time debugging an issue, if anything arises. Let's log the failure before proceeding with rollback. Change-Id: Ic92b1403c00bb238a68265a15150a4be6f6b2346 | ||||
| * | Port to Python3 | Cyril Roelandt | 2014-04-09 | 1 | -4/+7 |
| | | | | | | | | | | | | | | | | | | | 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> | ||||
| * | Eradicate trailing whitespace | David Ripton | 2014-02-26 | 2 | -2/+2 |
| | | | | | | | | | | | 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 | ||||
| * | Fix and test issue 118. Clarify genmodel transformations. | Gabriel | 2011-07-05 | 1 | -8/+8 |
| | | |||||
| * | fix py2.4 and py2.5 | Domen Kožar | 2011-02-05 | 1 | -1/+1 |
| | | |||||
| * | fixes #106 | Domen Kožar | 2011-02-05 | 1 | -6/+7 |
| | | |||||
| * | use absolute imports of exception classes (fixes tests) | Jan Dittberner | 2010-11-07 | 1 | -6/+6 |
| | | |||||
| * | rewrite of schemadiff internals | chrisw | 2010-09-10 | 1 | -2/+1 |
| | | |||||
| * | move all exception classes to migrate.exceptions | iElectric | 2010-09-07 | 2 | -6/+7 |
| | | |||||
| * | correct case for dependencies in setup.py | iElectric | 2010-08-16 | 1 | -1/+2 |
| | | |||||
| * | fix deprecation warning when using old script synta | iElectric | 2010-07-09 | 1 | -1/+1 |
| | | |||||
| * | unified warnings, use compare columns in tests | iElectric | 2010-05-01 | 1 | -1/+1 |
| | | |||||
| * | added 0.6 TODO, all api now uses engine.dispose() to handle pool correctly | iElectric | 2010-04-29 | 1 | -6/+9 |
| | | |||||
| * | merge | iElectric | 2009-08-10 | 3 | -18/+34 |
| |\ | |||||
| | * | use logging module for output, fixes #26 | iElectric | 2009-07-08 | 3 | -4/+13 |
| | | | |||||
| | * | add tests for plain API, fixed some small bugs | iElectric | 2009-07-08 | 2 | -13/+20 |
| | | | |||||
| | * | convert svn to hg | iElectric | 2009-06-30 | 4 | -0/+252 |
| | | |||||
| * | remove versioning.base in favor of versioning.config | iElectric | 2009-08-07 | 2 | -4/+8 |
| | | |||||
| * | add option to customize templates and use multiple themes | iElectric | 2009-07-28 | 1 | -8/+3 |
| | | |||||
| * | add support for SA 0.6 by Michael Bayer | iElectric | 2009-06-29 | 1 | -1/+1 |
| | | |||||
| * | some more PEP8 love | iElectric | 2009-06-21 | 1 | -1/+1 |
| | | |||||
| * | updated changeset tests. whole package is finally PEP8. fixed mysql ↵ | iElectric | 2009-06-20 | 1 | -1/+2 |
| | | | | | tests&bugs. updated docs where apropriate. changeset test coverage almost at 100% | ||||
| * | update documentation | iElectric | 2009-06-12 | 1 | -1/+4 |
| | | |||||
| * | removed magical behavior with importing migrate_engine, now engine is passed ↵ | iElectric | 2009-06-12 | 1 | -6/+2 |
| | | | | | to upgrade/downgrade functions | ||||
| * | lipstick changes | iElectric | 2009-06-10 | 1 | -0/+1 |
| | | |||||
| * | update tests and docs for migrate.versioning.script.* | iElectric | 2009-06-08 | 4 | -31/+91 |
| | | |||||
| * | rearange tests | iElectric | 2009-06-07 | 1 | -3/+2 |
| | | |||||
| * | add tests for low level util.py | iElectric | 2009-06-06 | 2 | -4/+4 |
| | | |||||
| * | Issue 34; preview_sql now correctly displays SQL on python and SQL scripts. ↵ | iElectric | 2009-06-06 | 2 | -35/+66 |
| | | | | | (tests added, docs still missing) | ||||
| * | more migrate deprecation removal fixes. | percious17 | 2008-12-03 | 1 | -1/+4 |
| | | |||||
| * | hopefully the last of migrate.run | percious17 | 2008-12-02 | 1 | -1/+1 |
| | | |||||
| * | more "run" removal. | percious17 | 2008-12-02 | 1 | -3/+3 |
| | | |||||
| * | almost done issue 12: generate downgrade method for schema migration | christian.simms | 2008-04-24 | 1 | -9/+5 |
| | | |||||
| * | Change make_update_script_for_model shell command to compare two versions of ↵ | christian.simms | 2008-04-06 | 1 | -4/+5 |
| | | | | | Python model (issue #12); add shell test for new diff'ing apis | ||||
| * | code reorg: create new utility method loadModel for db diffing | christian.simms | 2008-04-01 | 1 | -7/+2 |
| | | |||||
| * | rename model/db sync commands and add new command update_db_from_model | christian.simms | 2008-03-24 | 1 | -1/+1 |
| | | |||||
| * | add experimental support for comparing metadata against database (issue #12) | christian.simms | 2008-03-22 | 1 | -1/+32 |
| | | |||||
| * | moved trunk, branches and tags to project root | jan.dittberner | 2008-02-06 | 4 | -0/+135 |
| fixes Issue #5 | |||||
