def ExportMigrations():
<EOL>from django.db.migrations.executor import MigrationExecutor<EOL>if '<STR_LIT:default>' in connections and (<EOL>type(connections['<STR_LIT:default>']) == DatabaseWrapper):<EOL><INDENT>return<EOL><DEDENT>for alias in connections.databases:<EOL><INDENT>executor = MigrationExecutor(connections[alias])<EOL>ExportMigrationsForDatabase(alias, executor)<EOL><DEDENT>
Exports counts of unapplied migrations.

    This is meant to be called during app startup, ideally by
    django_prometheus.apps.AppConfig.