From 0c700bb5c2cb912432ff92eb87507a4147609480 Mon Sep 17 00:00:00 2001 From: Matjaz Gregoric Date: Thu, 24 Nov 2016 11:13:33 +0100 Subject: [PATCH] Remove migration that extends course_id. Migration locks the table, which is not desired since the production table on edx.org is quite large. The course_id field will be extended in a multiple steps instead. For more info see: - https://github.com/edx/edx-platform/pull/14013 - https://github.com/open-craft/problem-builder/pull/131 --- .../migrations/0003_auto_20161116_0730.py | 19 ------------------- problem_builder/models.py | 2 +- 2 files changed, 1 insertion(+), 20 deletions(-) delete mode 100644 problem_builder/migrations/0003_auto_20161116_0730.py diff --git a/problem_builder/migrations/0003_auto_20161116_0730.py b/problem_builder/migrations/0003_auto_20161116_0730.py deleted file mode 100644 index d10dee6f..00000000 --- a/problem_builder/migrations/0003_auto_20161116_0730.py +++ /dev/null @@ -1,19 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('problem_builder', '0002_auto_20160121_1525'), - ] - - operations = [ - migrations.AlterField( - model_name='answer', - name='course_id', - field=models.CharField(max_length=255, db_index=True), - ), - ] diff --git a/problem_builder/models.py b/problem_builder/models.py index abc47768..5afc3df7 100644 --- a/problem_builder/models.py +++ b/problem_builder/models.py @@ -39,7 +39,7 @@ class Meta: name = models.CharField(max_length=50, db_index=True) student_id = models.CharField(max_length=32, db_index=True) - course_id = models.CharField(max_length=255, db_index=True) + course_id = models.CharField(max_length=50, db_index=True) student_input = models.TextField(blank=True, default='') created_on = models.DateTimeField('created on', auto_now_add=True) modified_on = models.DateTimeField('modified on', auto_now=True)