Commit 7d544612 by Waheed Ahmed

Create migration to remove 'sailthru_activation_template' from DB.

Follow up PR for PR-15863 to remove the field from database table.

LEARNER-2201
parent 0c204e35
......@@ -226,11 +226,4 @@ class MigrationTests(TestCase):
out = StringIO()
call_command('makemigrations', dry_run=True, verbosity=3, stdout=out)
output = out.getvalue()
# Temporary check, remove it once migration is created and use the else part.
if settings.ROOT_URLCONF == 'lms.urls':
migrations_count = output.count('Migrations for')
self.assertIn('Remove field sailthru_activation_template', output)
self.assertEqual(migrations_count, 1)
else:
self.assertIn('No changes detected', output)
self.assertIn('No changes detected', output)
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('email_marketing', '0008_auto_20170809_0539'),
]
operations = [
migrations.RemoveField(
model_name='emailmarketingconfiguration',
name='sailthru_activation_template',
),
]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment