From ff93b652ca85268cd19f665ada31100bda34beda Mon Sep 17 00:00:00 2001 From: iElectric Date: Sun, 12 Sep 2010 13:29:17 +0200 Subject: [PATCH 1/2] fixed #92 --- TODO | 2 ++ migrate/versioning/shell.py | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/TODO b/TODO index 44d94f0..da88c94 100644 --- a/TODO +++ b/TODO @@ -17,6 +17,8 @@ Unknown milestone - bash autocompletion - clarify ImportError in load_model - implement debug flag to jump into the error +- sqlautocode support +- serializers (json, yaml, etc) 0.6.1 diff --git a/migrate/versioning/shell.py b/migrate/versioning/shell.py index 2d36c42..ad7b679 100644 --- a/migrate/versioning/shell.py +++ b/migrate/versioning/shell.py @@ -64,7 +64,10 @@ def main(argv=None, **kwargs): :param disable_logging: Let migrate configure logging :type disable_logging: bool """ - argv = argv or list(sys.argv[1:]) + if argv is not None: + argv = argv + else: + argv = list(sys.argv[1:]) commands = list(api.__all__) commands.sort() From e03cabc49a48876d7543a90d25f8ef35cc9f08c6 Mon Sep 17 00:00:00 2001 From: iElectric Date: Sun, 12 Sep 2010 13:31:48 +0200 Subject: [PATCH 2/2] update changelog --- docs/changelog.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/changelog.rst b/docs/changelog.rst index 3c709dc..f3536dd 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -23,6 +23,7 @@ Fixed bugs - fixed bug with column dropping involving foreign keys - fixed bug that prevented non-unique indexes being created (issue 94) - fixed bug when dropping columns with unique constraints in sqlite +- fixed bug when passing empty list in :func:`migrate.versioning.shell.main` failed 0.6 (11.07.2010) ---------------------------