[hooks] Fix precommit event logging message
authorRémi Cardona <remi.cardona@logilab.fr>
Wed, 29 Oct 2014 16:39:36 +0100
changeset 10035 c5bcdece77fb
parent 10034 7d0acf9cb92a
child 10036 16f550b48d57
[hooks] Fix precommit event logging message
hooks/syncschema.py
--- a/hooks/syncschema.py	Thu Oct 23 13:51:13 2014 +0200
+++ b/hooks/syncschema.py	Wed Oct 29 16:39:36 2014 +0100
@@ -449,7 +449,7 @@
             cnx.system_sql(str('ALTER TABLE %s ADD %s %s'
                                    % (table, column, attrtype)),
                                rollback_on_failure=False)
-            self.info('added column %s to table %s', table, column)
+            self.info('added column %s to table %s', column, table)
         except Exception as ex:
             # the column probably already exists. this occurs when
             # the entity's type has just been added or if the column