From 6ae11ecb3179b42bae370c868884bf1fe6ad8730 Mon Sep 17 00:00:00 2001 From: zubair-arbi Date: Fri, 7 Aug 2020 12:18:14 +0500 Subject: [PATCH] Add dummy migration for migration rollback testing EDLY-1708 --- .../0006_edlyuserprofile_dummy_field.py | 20 +++++++++++++++++++ openedx/features/edly/models.py | 5 +++++ 2 files changed, 25 insertions(+) create mode 100644 openedx/features/edly/migrations/0006_edlyuserprofile_dummy_field.py diff --git a/openedx/features/edly/migrations/0006_edlyuserprofile_dummy_field.py b/openedx/features/edly/migrations/0006_edlyuserprofile_dummy_field.py new file mode 100644 index 000000000000..6a63cac26294 --- /dev/null +++ b/openedx/features/edly/migrations/0006_edlyuserprofile_dummy_field.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.11.29 on 2020-10-06 11:12 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('edly', '0005_add_enable_all_edly_sub_org_login_boolean'), + ] + + operations = [ + migrations.AddField( + model_name='edlyuserprofile', + name='dummy_field', + field=models.CharField(help_text=b'Field added for migration rollback testing.', max_length=255, null=True), + ), + ] diff --git a/openedx/features/edly/models.py b/openedx/features/edly/models.py index ef284be4ae19..10d93980a5a1 100644 --- a/openedx/features/edly/models.py +++ b/openedx/features/edly/models.py @@ -47,6 +47,11 @@ class EdlyUserProfile(models.Model): """ user = models.OneToOneField(User, unique=True, db_index=True, related_name='edly_profile', on_delete=models.CASCADE) edly_sub_organizations = models.ManyToManyField(EdlySubOrganization) + dummy_field = models.CharField( + max_length=255, + help_text='Field added for migration rollback testing.', + null = True, + ) @property def get_linked_edly_sub_organizations(self):