Revert "Revert "ENT-779 Remove ProviderConfig.drop_existing_session field from DB.""

This reverts commit 23e17b3c35.
This commit is contained in:
Douglas Hall
2018-01-04 16:57:52 -05:00
parent 57c45c6453
commit 9071117ea2
2 changed files with 27 additions and 7 deletions

View File

@@ -0,0 +1,26 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('third_party_auth', '0013_sync_learner_profile_data'),
]
operations = [
migrations.RemoveField(
model_name='ltiproviderconfig',
name='drop_existing_session',
),
migrations.RemoveField(
model_name='oauth2providerconfig',
name='drop_existing_session',
),
migrations.RemoveField(
model_name='samlproviderconfig',
name='drop_existing_session',
),
]

View File

@@ -237,10 +237,4 @@ class MigrationTests(TestCase):
out = StringIO()
call_command('makemigrations', dry_run=True, verbosity=3, stdout=out)
output = out.getvalue()
# Temporarily disable this check so we can remove
# the ProviderConfig.drop_existing_session field.
# We will restore this check once the code referencing
# this field has been deleted/released and a migration
# for field removal has been added.
if 'Remove field' not in output:
self.assertIn('No changes detected', output)
self.assertIn('No changes detected', output)