# HG changeset patch # User Olly Cope # Date 1715172098 0 # Wed May 08 12:41:38 2024 +0000 # Node ID e41b0a93a75022de74f845e97edebe2d6a3e032a # Parent b4c650e9b48800a4bb5dd9463e8382bc952039c9 remove comment argument from Backend.log_migration This argument is unused, and removing it from the insert query parameters fixes the follow-up issue noted on #102 diff --git a/yoyo/backends/base.py b/yoyo/backends/base.py --- a/yoyo/backends/base.py +++ b/yoyo/backends/base.py @@ -567,11 +567,11 @@ if log: self.log_migration(migration, "mark") - def log_migration(self, migration, operation, comment=None): + def log_migration(self, migration, operation): sql = self.format_sql(self.log_migration_sql) - self.execute(sql, self.get_log_data(migration, operation, comment)) + self.execute(sql, self.get_log_data(migration, operation)) - def get_log_data(self, migration=None, operation="apply", comment=None): + def get_log_data(self, migration=None, operation="apply"): """ Return a dict of data for insertion into the ``_yoyo_log`` table """ @@ -584,7 +584,6 @@ "hostname": socket.getfqdn(), "created_at_utc": datetime.now(timezone.utc).replace(tzinfo=None), "operation": operation, - "comment": comment, }