Fix for issue #125, create the table on the same connection as the ALTER and INSERT happen
This commit is contained in:
parent
a1968e7f7d
commit
cef7676b58
@ -39,7 +39,7 @@ class SQLiteHelper(SQLiteCommon):
|
|||||||
|
|
||||||
insertion_string = self._modify_table(table, column, delta)
|
insertion_string = self._modify_table(table, column, delta)
|
||||||
|
|
||||||
table.create()
|
table.create(bind=self.connection)
|
||||||
self.append(insertion_string % {'table_name': table_name})
|
self.append(insertion_string % {'table_name': table_name})
|
||||||
self.execute()
|
self.execute()
|
||||||
self.append('DROP TABLE migration_tmp')
|
self.append('DROP TABLE migration_tmp')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user