Create migration to remove 'sailthru_activation_template' from DB.
Follow up PR for PR-15863 to remove the field from database table. LEARNER-2201
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
# -*- 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',
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user