Commit 98b250b6 by Ned Batchelder

A new django app for unicorn migrations

parent 04557bbf
...@@ -959,6 +959,9 @@ INSTALLED_APPS = ( ...@@ -959,6 +959,9 @@ INSTALLED_APPS = (
# management of user-triggered async tasks (course import/export, etc.) # management of user-triggered async tasks (course import/export, etc.)
'user_tasks', 'user_tasks',
# Unusual migrations
'database_fixups',
) )
......
"""
This app exists solely to host unusual database migrations.
"""
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import unicode_literals from __future__ import unicode_literals
from django.db import migrations from django.db import migrations, models
# We used to have a uniqueness constraint on auth_user.email: # We used to have a uniqueness constraint on auth_user.email:
# https://github.com/edx/edx-platform/commit/c52727b0e0fb241d8211900975d3b69fe5a1bd57 # https://github.com/edx/edx-platform/commit/c52727b0e0fb241d8211900975d3b69fe5a1bd57
...@@ -27,7 +27,6 @@ def add_email_uniqueness_constraint(apps, schema_editor): ...@@ -27,7 +27,6 @@ def add_email_uniqueness_constraint(apps, schema_editor):
class Migration(migrations.Migration): class Migration(migrations.Migration):
dependencies = [ dependencies = [
('student', '0010_auto_20170207_0458'),
] ]
operations = [ operations = [
......
...@@ -2164,6 +2164,9 @@ INSTALLED_APPS = ( ...@@ -2164,6 +2164,9 @@ INSTALLED_APPS = (
# Ability to detect and special-case crawler behavior # Ability to detect and special-case crawler behavior
'openedx.core.djangoapps.crawlers', 'openedx.core.djangoapps.crawlers',
# Unusual migrations
'database_fixups',
) )
# Migrations which are not in the standard module "migrations" # Migrations which are not in the standard module "migrations"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment