(self)
Migrate from schema 1 to 2.
Migrate from schema 1 to 2.
Migrate from schema 1 to 2 .
def migrate_1_to_2(self):
    """
    Migrate from schema 1 to 2.
    """

    if self.schema_version < 1:
        migrate_0_to_1(self)

    if self.schema_version == 1:
        from crits.core.core_migrate import migrate_analysis_results
        migrate_analysis_results(self)
        self.schema_version = 2
        self.save()
        self.reload()
def migrate_1_to_2 ( self ) : if self . schema_version < 1 : migrate_0_to_1 ( self ) if self . schema_version == 1 : from crits . core . core_migrate import migrate_analysis_results migrate_analysis_results ( self ) self . schema_version = 2 self . save ( ) self . reload ( )