From cef7676b58a71f41a842207357dcb2b73bd624ba Mon Sep 17 00:00:00 2001 From: "al.yazdi@gmail.com" Date: Wed, 26 Oct 2011 06:32:59 +0000 Subject: Fix for issue #125, create the table on the same connection as the ALTER and INSERT happen --- migrate/changeset/databases/sqlite.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'migrate') diff --git a/migrate/changeset/databases/sqlite.py b/migrate/changeset/databases/sqlite.py index 447412d..5eb8e26 100644 --- a/migrate/changeset/databases/sqlite.py +++ b/migrate/changeset/databases/sqlite.py @@ -39,7 +39,7 @@ class SQLiteHelper(SQLiteCommon): insertion_string = self._modify_table(table, column, delta) - table.create() + table.create(bind=self.connection) self.append(insertion_string % {'table_name': table_name}) self.execute() self.append('DROP TABLE migration_tmp') -- cgit v1.2.1