Commits

Udo Spallek committed b6a0979

Insert migration from changeset 4cb83ace4b59: Drop column 'name' on table
bank_account. Changed comments.

Comments (0)

Files changed (1)

         super(BankAccount, self).init(cursor, module_name)
         table = TableHandler(cursor, self, module_name)
         # Migration for existing databases
-        # Set currency not required
+        # Set column 'currency' not required
         table.not_null_action('currency', action='remove')
+        # Remove column 'name'
+        if table.column_exist('name'):
+            table.drop_column('name', exception=True)
 
     def get_rec_name(self, cursor, user, ids, name, arg, context=None):
         if not ids: