Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
98b250b6
Commit
98b250b6
authored
Feb 15, 2017
by
Ned Batchelder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A new django app for unicorn migrations
parent
04557bbf
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
2 deletions
+10
-2
cms/envs/common.py
+3
-0
common/djangoapps/database_fixups/__init__.py
+3
-0
common/djangoapps/database_fixups/migrations/0001_initial.py
+1
-2
common/djangoapps/database_fixups/migrations/__init__.py
+0
-0
lms/envs/common.py
+3
-0
No files found.
cms/envs/common.py
View file @
98b250b6
...
...
@@ -959,6 +959,9 @@ INSTALLED_APPS = (
# management of user-triggered async tasks (course import/export, etc.)
'user_tasks'
,
# Unusual migrations
'database_fixups'
,
)
...
...
common/djangoapps/database_fixups/__init__.py
0 → 100644
View file @
98b250b6
"""
This app exists solely to host unusual database migrations.
"""
common/djangoapps/
student/migrations/0011_auto_20170214_1200
.py
→
common/djangoapps/
database_fixups/migrations/0001_initial
.py
View file @
98b250b6
# -*- coding: utf-8 -*-
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:
# https://github.com/edx/edx-platform/commit/c52727b0e0fb241d8211900975d3b69fe5a1bd57
...
...
@@ -27,7 +27,6 @@ def add_email_uniqueness_constraint(apps, schema_editor):
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'student'
,
'0010_auto_20170207_0458'
),
]
operations
=
[
...
...
common/djangoapps/database_fixups/migrations/__init__.py
0 → 100644
View file @
98b250b6
lms/envs/common.py
View file @
98b250b6
...
...
@@ -2164,6 +2164,9 @@ INSTALLED_APPS = (
# Ability to detect and special-case crawler behavior
'openedx.core.djangoapps.crawlers'
,
# Unusual migrations
'database_fixups'
,
)
# Migrations which are not in the standard module "migrations"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment