 FROM `django_migrations`
 WHERE (`django_migrations`.`app` = 'accelerator'
        AND NOT (`django_migrations`.`id` = 179));
--- MigrationRecorder.Migration.objects.filter(app='accelerator').exclude(id=MigrationRecorder.Migration.objects.filter(app='accelerator').first().id).delete()
+/*
+MigrationRecorder.Migration.objects.filter(app='accelerator').exclude(
+id=MigrationRecorder.Migration.objects.filter(app='accelerator').first().id
+).delete()
+*/
 
 
 DELETE

-- rename mc content types to accelerator
UPDATE `django_content_type`
SET `app_label` = 'accelerator'
WHERE `django_content_type`.`app_label` = 'mc';

-- rename mc tables to accelerator
RENAME TABLE

                                 509,
                                 510,
                                 511);

-- delete content types for accelerator models that are later "recreated"
/*
from django.contrib.contenttypes.models import ContentType
ContentType.objects.filter(app_label="accelerator").exclude(model="currency").delete()
 */
DELETE FROM django_content_type
WHERE app_label = 'accelerator' AND model != 'currency';

-- delete unused accelerator tables

DROP TABLE accelerator_jobposting;
