diff options
author | al.yazdi@gmail.com <unknown> | 2011-10-26 06:32:59 +0000 |
---|---|---|
committer | al.yazdi@gmail.com <unknown> | 2011-10-26 06:32:59 +0000 |
commit | cef7676b58a71f41a842207357dcb2b73bd624ba (patch) | |
tree | b9824d147ed6abdbc11892cd7f534d0666bfcabf /migrate | |
parent | a1968e7f7da37a104555581bcab4fb01df90e5a5 (diff) | |
download | sqalchemy-migrate-cef7676b58a71f41a842207357dcb2b73bd624ba.tar.gz |
Fix for issue #125, create the table on the same connection as the ALTER and INSERT happen
Diffstat (limited to 'migrate')
-rw-r--r-- | migrate/changeset/databases/sqlite.py | 2 |
1 files changed, 1 insertions, 1 deletions
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') |