Skip to content

Commit

Permalink
Add dummy migration for migration rollback testing
Browse files Browse the repository at this point in the history
EDLY-1708
  • Loading branch information
zubair-arbi committed Oct 6, 2020
1 parent ad4540b commit 6ae11ec
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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),
),
]
5 changes: 5 additions & 0 deletions openedx/features/edly/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 6ae11ec

Please sign in to comment.