Skip to content

Migratecollections

snoop.data.management.commands.migratecollections #

Creates and migrates databases and indexes.

Classes#

Command #

Methods#
handle(self, *args, **options) #

The actual logic of the command. Subclasses must implement this method.

Source code in snoop/data/management/commands/migratecollections.py
def handle(self, *args, **options):
    logging_for_management_command(options['verbosity'])
    collections.create_databases()
    collections.migrate_databases()
    collections.create_es_indexes()
    collections.create_roots()