ENT-779 Remove ProviderConfig.drop_existing_session field from DB.

References to this field were already removed with:

https://github.com/edx/edx-platform/pull/16987
This commit is contained in:
Douglas Hall
2017-12-22 12:34:29 -05:00
parent ce15435ec2
commit 2c3afb232b
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)