summaryrefslogtreecommitdiff
path: root/yaksh/migrations
diff options
context:
space:
mode:
Diffstat (limited to 'yaksh/migrations')
-rw-r--r--yaksh/migrations/0013_release_0_9_0.py8
-rw-r--r--yaksh/migrations/0014_release_0_9_1.py21
-rw-r--r--yaksh/migrations/0015_release_0_10_0.py25
-rw-r--r--yaksh/migrations/0016_release_0_12_0.py20
4 files changed, 67 insertions, 7 deletions
diff --git a/yaksh/migrations/0013_release_0_9_0.py b/yaksh/migrations/0013_release_0_9_0.py
index 3f7f377..f18070d 100644
--- a/yaksh/migrations/0013_release_0_9_0.py
+++ b/yaksh/migrations/0013_release_0_9_0.py
@@ -1,11 +1,10 @@
# -*- coding: utf-8 -*-
-# Generated by Django 1.10 on 2018-07-13 10:24
+# Generated by Django 1.10 on 2018-07-13 14:16
from __future__ import unicode_literals
from django.db import migrations, models
import yaksh.models
-
def set_is_moderator(apps, schema_editor):
""" Set is_moderator to True for all users that belong
to Moderator group """
@@ -17,7 +16,6 @@ def set_is_moderator(apps, schema_editor):
prof.is_moderator = True
prof.save()
-
class Migration(migrations.Migration):
dependencies = [
@@ -40,9 +38,5 @@ class Migration(migrations.Migration):
name='file',
field=models.FileField(default=None, upload_to=yaksh.models.get_file_dir),
),
- migrations.AlterUniqueTogether(
- name='testcaseorder',
- unique_together=set([('answer_paper', 'question', 'order')]),
- ),
migrations.RunPython(set_is_moderator),
]
diff --git a/yaksh/migrations/0014_release_0_9_1.py b/yaksh/migrations/0014_release_0_9_1.py
new file mode 100644
index 0000000..a15c0e0
--- /dev/null
+++ b/yaksh/migrations/0014_release_0_9_1.py
@@ -0,0 +1,21 @@
+# -*- coding: utf-8 -*-
+# Generated by Django 1.10 on 2019-02-07 10:41
+from __future__ import unicode_literals
+
+from django.db import migrations, models
+import django.db.models.deletion
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('yaksh', '0013_release_0_9_0'),
+ ]
+
+ operations = [
+ migrations.AddField(
+ model_name='assignmentupload',
+ name='course',
+ field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='yaksh.Course'),
+ ),
+ ]
diff --git a/yaksh/migrations/0015_release_0_10_0.py b/yaksh/migrations/0015_release_0_10_0.py
new file mode 100644
index 0000000..9a97a60
--- /dev/null
+++ b/yaksh/migrations/0015_release_0_10_0.py
@@ -0,0 +1,25 @@
+# -*- coding: utf-8 -*-
+# Generated by Django 1.10 on 2019-04-24 10:41
+from __future__ import unicode_literals
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('yaksh', '0014_release_0_9_1'),
+ ]
+
+ operations = [
+ migrations.AddField(
+ model_name='course',
+ name='view_grade',
+ field=models.BooleanField(default=False),
+ ),
+ migrations.AddField(
+ model_name='learningmodule',
+ name='check_prerequisite_passes',
+ field=models.BooleanField(default=False),
+ ),
+ ]
diff --git a/yaksh/migrations/0016_release_0_12_0.py b/yaksh/migrations/0016_release_0_12_0.py
new file mode 100644
index 0000000..74edaa5
--- /dev/null
+++ b/yaksh/migrations/0016_release_0_12_0.py
@@ -0,0 +1,20 @@
+# -*- coding: utf-8 -*-
+# Generated by Django 1.11.21 on 2020-02-05 05:38
+from __future__ import unicode_literals
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('yaksh', '0015_release_0_10_0'),
+ ]
+
+ operations = [
+ migrations.AlterField(
+ model_name='question',
+ name='language',
+ field=models.CharField(choices=[('python', 'Python'), ('bash', 'Bash'), ('c', 'C Language'), ('cpp', 'C++ Language'), ('java', 'Java Language'), ('scilab', 'Scilab'), ('r', 'R')], max_length=24),
+ ),
+ ]