Merge pull request #21355 from edx/diana/microsite-deletion-migrations
Deletion migration for microsites tables.
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.11.23 on 2019-08-16 17:27
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('microsite_configuration', '0003_delete_historical_records'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name='microsite',
|
||||
name='site',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='micrositehistory',
|
||||
name='site',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='micrositeorganizationmapping',
|
||||
name='microsite',
|
||||
),
|
||||
migrations.AlterUniqueTogether(
|
||||
name='micrositetemplate',
|
||||
unique_together=set([]),
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='micrositetemplate',
|
||||
name='microsite',
|
||||
),
|
||||
migrations.DeleteModel(
|
||||
name='Microsite',
|
||||
),
|
||||
migrations.DeleteModel(
|
||||
name='MicrositeHistory',
|
||||
),
|
||||
migrations.DeleteModel(
|
||||
name='MicrositeOrganizationMapping',
|
||||
),
|
||||
migrations.DeleteModel(
|
||||
name='MicrositeTemplate',
|
||||
),
|
||||
]
|
||||
@@ -222,7 +222,6 @@ class MigrationTests(TestCase):
|
||||
"""
|
||||
Tests for migrations.
|
||||
"""
|
||||
@unittest.skip("Migration will delete several models. Need to ship not referencing it first. DEPR-12.")
|
||||
@override_settings(MIGRATION_MODULES={})
|
||||
def test_migrations_are_in_sync(self):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user