src/dirbs/schema_migrators/v84_upgrade.py
def _create_index_on_device_id(self, logger, conn):
        """Method to create index on device_id in registration_list."""
        logger.info('Creating index on device_id in historic_registration_list...')
        idx_metadata = [part_utils.IndexMetadatum(idx_cols=['device_id'],
                                                  is_unique=False,
                                                  partial_sql='WHERE end_date IS NULL')]
        part_utils.add_indices(conn, tbl_name='historic_registration_list', idx_metadata=idx_metadata)
Method to create index on device_id in registration_list.
Method to create index on device_id in registration_list.
Method to create index on device_id in registration_list .
def _create_index_on_device_id(self, logger, conn):
        logger.info('Creating index on device_id in historic_registration_list...')
        idx_metadata = [part_utils.IndexMetadatum(idx_cols=['device_id'],
                                                  is_unique=False,
                                                  partial_sql='WHERE end_date IS NULL')]
        part_utils.add_indices(conn, tbl_name='historic_registration_list', idx_metadata=idx_metadata)
def _create_index_on_device_id ( self , logger , conn ) : logger . info ( 'Creating index on device_id in historic_registration_list...' ) idx_metadata = [ part_utils . IndexMetadatum ( idx_cols = [ 'device_id' ] , is_unique = False , partial_sql = 'WHERE end_date IS NULL' ) ] part_utils . add_indices ( conn , tbl_name = 'historic_registration_list' , idx_metadata = idx_metadata )
Method to create index on device_id in registration_list.
Method to create index on device_id in registration_list .
"""Method to create index on device_id in registration_list."""
self
logger
conn