import logging

log = logging.getLogger(__name__)


def up(db):
    capped_collections = [
        "fco_realtime_pay_legalisation_post",
        "fco_realtime_pay_legalisation_drop_off",
        "fco_realtime_pay_register_birth_abroad",
        "fco_realtime_pay_register_death_abroad",
        "fco_realtime_pay_foreign_marriage_certificates",
        "fco_realtime_deposit_foreign_marriage",
        "govuk_realtime",
        "licensing_realtime",
   ]

    for collection_name in capped_collections:
        db.create_collection(name=collection_name, capped=True, size=5040)
        log.info("created capped collection: %s" % collection_name)

import logging

log = logging.getLogger(__name__)


def up(db):
    capped_collections = [
        "fco_pay_legalisation_post_realtime",
        "fco_pay_legalisation_drop_off_realtime",
        "fco_pay_register_birth_abroad_realtime",
        "fco_pay_register_death_abroad_realtime",
        "fco_pay_foreign_marriage_certificates_realtime",
        "fco_deposit_foreign_marriage_realtime",
        "govuk_realtime",
        "licensing_realtime",
   ]

    for collection_name in capped_collections:
        db.create_collection(name=collection_name, capped=True, size=5040)
        log.info("created capped collection: %s" % collection_name)

Make realtim fco bucket names match format of others
Make realtim fco bucket names match format of others

  import logging
  
  log = logging.getLogger(__name__)
  
  
  def up(db):
      capped_collections = [
-         "fco_realtime_pay_legalisation_post",
+         "fco_pay_legalisation_post_realtime",
-         "fco_realtime_pay_legalisation_drop_off",
+         "fco_pay_legalisation_drop_off_realtime",
-         "fco_realtime_pay_register_birth_abroad",
+         "fco_pay_register_birth_abroad_realtime",
-         "fco_realtime_pay_register_death_abroad",
+         "fco_pay_register_death_abroad_realtime",
-         "fco_realtime_pay_foreign_marriage_certificates",
+         "fco_pay_foreign_marriage_certificates_realtime",
-         "fco_realtime_deposit_foreign_marriage",
+         "fco_deposit_foreign_marriage_realtime",
          "govuk_realtime",
          "licensing_realtime",
     ]
  
      for collection_name in capped_collections:
          db.create_collection(name=collection_name, capped=True, size=5040)
          log.info("created capped collection: %s" % collection_name)
  
Make realtim fco bucket names match format of others
## Code Before:
import logging

log = logging.getLogger(__name__)


def up(db):
    capped_collections = [
        "fco_realtime_pay_legalisation_post",
        "fco_realtime_pay_legalisation_drop_off",
        "fco_realtime_pay_register_birth_abroad",
        "fco_realtime_pay_register_death_abroad",
        "fco_realtime_pay_foreign_marriage_certificates",
        "fco_realtime_deposit_foreign_marriage",
        "govuk_realtime",
        "licensing_realtime",
   ]

    for collection_name in capped_collections:
        db.create_collection(name=collection_name, capped=True, size=5040)
        log.info("created capped collection: %s" % collection_name)

## Instruction:
Make realtim fco bucket names match format of others
## Code After:
import logging

log = logging.getLogger(__name__)


def up(db):
    capped_collections = [
        "fco_pay_legalisation_post_realtime",
        "fco_pay_legalisation_drop_off_realtime",
        "fco_pay_register_birth_abroad_realtime",
        "fco_pay_register_death_abroad_realtime",
        "fco_pay_foreign_marriage_certificates_realtime",
        "fco_deposit_foreign_marriage_realtime",
        "govuk_realtime",
        "licensing_realtime",
   ]

    for collection_name in capped_collections:
        db.create_collection(name=collection_name, capped=True, size=5040)
        log.info("created capped collection: %s" % collection_name)
