code: def up(self) -> None:
      # See https://docs.mongoengine.org/guide/migration.html#example-1-addition-of-a-field
      logging.info("If missing, add the ttl field to the locks")
      db = get_db(QUEUE_MONGOENGINE_ALIAS)
      db[QUEUE_COLLECTION_LOCKS].update_many(
          {"ttl": {"$exists": False}}, [{"$set": {"ttl": None}}]
      )
  
file_path: datasets-server/jobs/mongodb_migration/src/mongodb_migration/migrations/_20230825170200_lock_add_ttl.py
imports: import logging
  from libcommon.constants import QUEUE_COLLECTION_LOCKS, QUEUE_MONGOENGINE_ALIAS
  from libcommon.queue import Lock
  from mongoengine.connection import get_db
  from mongodb_migration.check import check_documents
  from mongodb_migration.migration import Migration
label_desc: Use image node_id 1 for calling the MigrationAddTtlToQueueLock obj's underlying member method code with example usage: obj.up() without return types