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 Aug 7, 2020
1 parent 56b2280 commit e13b0d3
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-08-07 07:17
from __future__ import unicode_literals

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('edly', '0004_edlysuborganization_preview_site'),
]

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 @@ -46,6 +46,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 e13b0d3

Please sign in to comment.