Drop column after migration

issue2362
review210004
This commit is contained in:
Udo Spallek committed 2011-12-26 16:28:02 +01:00
1 parent 4d68361b8c
commit 3a8f53e574
1 file changed
+1 -1
+1 -1
View File
@@ -198,7 +198,7 @@ class Invoice(ModelWorkflow, ModelSQL, ModelView):
cursor.execute('UPDATE "' + self._table + '" '
'SET invoice_report_cache = %s '
'WHERE id = %s', (report, invoice_id))
table.drop_column('invoice_report')
table.drop_column('invoice_report')
# Add index on create_date
table.index_action('create_date', action='add')