summaryrefslogtreecommitdiff
path: root/yaksh/migrations
diff options
context:
space:
mode:
Diffstat (limited to 'yaksh/migrations')
-rw-r--r--yaksh/migrations/0021_auto_20200703_1556.py25
-rw-r--r--yaksh/migrations/0022_release_0_22_1.py30
-rw-r--r--yaksh/migrations/0023_release_0_23_0.py46
-rw-r--r--yaksh/migrations/0024_release_0_24_0.py19
-rw-r--r--yaksh/migrations/0025_release_0_26.py70
-rw-r--r--yaksh/migrations/0026_release_0_27_0.py34
-rw-r--r--yaksh/migrations/0027_release_0_28_0.py18
7 files changed, 242 insertions, 0 deletions
diff --git a/yaksh/migrations/0021_auto_20200703_1556.py b/yaksh/migrations/0021_auto_20200703_1556.py
new file mode 100644
index 0000000..713b2d8
--- /dev/null
+++ b/yaksh/migrations/0021_auto_20200703_1556.py
@@ -0,0 +1,25 @@
+# Generated by Django 3.0.7 on 2020-07-03 10:26
+
+import datetime
+from django.db import migrations, models
+from django.utils.timezone import utc
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('yaksh', '0020_release_0_21_0'),
+ ]
+
+ operations = [
+ migrations.AlterField(
+ model_name='course',
+ name='end_enroll_time',
+ field=models.DateTimeField(default=datetime.datetime(2198, 12, 31, 18, 7, tzinfo=utc), null=True, verbose_name='End Date and Time for enrollment of course'),
+ ),
+ migrations.AlterField(
+ model_name='quiz',
+ name='end_date_time',
+ field=models.DateTimeField(default=datetime.datetime(2198, 12, 31, 18, 7, tzinfo=utc), null=True, verbose_name='End Date and Time of the quiz'),
+ ),
+ ]
diff --git a/yaksh/migrations/0022_release_0_22_1.py b/yaksh/migrations/0022_release_0_22_1.py
new file mode 100644
index 0000000..5275b86
--- /dev/null
+++ b/yaksh/migrations/0022_release_0_22_1.py
@@ -0,0 +1,30 @@
+# Generated by Django 3.0.7 on 2020-08-28 07:17
+
+import datetime
+from django.db import migrations, models
+from django.utils.timezone import utc
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('yaksh', '0021_auto_20200703_1556'),
+ ]
+
+ operations = [
+ migrations.AlterField(
+ model_name='course',
+ name='end_enroll_time',
+ field=models.DateTimeField(default=datetime.datetime(2199, 1, 1, 0, 0, tzinfo=utc), null=True, verbose_name='End Date and Time for enrollment of course'),
+ ),
+ migrations.AlterField(
+ model_name='questionpaper',
+ name='fixed_question_order',
+ field=models.TextField(blank=True),
+ ),
+ migrations.AlterField(
+ model_name='quiz',
+ name='end_date_time',
+ field=models.DateTimeField(default=datetime.datetime(2199, 1, 1, 0, 0, tzinfo=utc), null=True, verbose_name='End Date and Time of the quiz'),
+ ),
+ ]
diff --git a/yaksh/migrations/0023_release_0_23_0.py b/yaksh/migrations/0023_release_0_23_0.py
new file mode 100644
index 0000000..0666fb8
--- /dev/null
+++ b/yaksh/migrations/0023_release_0_23_0.py
@@ -0,0 +1,46 @@
+# Generated by Django 3.0.7 on 2020-09-09 02:25
+
+from django.conf import settings
+from django.db import migrations, models
+import django.db.models.deletion
+import django.utils.timezone
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ migrations.swappable_dependency(settings.AUTH_USER_MODEL),
+ ('yaksh', '0022_release_0_22_1'),
+ ]
+
+ operations = [
+ migrations.AddField(
+ model_name='answerpaper',
+ name='extra_time',
+ field=models.FloatField(default=0.0, verbose_name='Additional time in mins'),
+ ),
+ migrations.AddField(
+ model_name='answerpaper',
+ name='is_special',
+ field=models.BooleanField(default=False),
+ ),
+ migrations.CreateModel(
+ name='MicroManager',
+ fields=[
+ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+ ('special_attempt', models.BooleanField(default=False)),
+ ('attempts_permitted', models.IntegerField(default=0)),
+ ('permitted_time', models.DateTimeField(default=django.utils.timezone.now)),
+ ('attempts_utilised', models.IntegerField(default=0)),
+ ('wait_time', models.IntegerField(default=0, verbose_name='Days to wait before special attempt')),
+ ('attempt_valid_for', models.IntegerField(default=90, verbose_name='Validity days')),
+ ('course', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='yaksh.Course')),
+ ('manager', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='micromanaging', to=settings.AUTH_USER_MODEL)),
+ ('quiz', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='yaksh.Quiz')),
+ ('student', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='micromanaged', to=settings.AUTH_USER_MODEL)),
+ ],
+ options={
+ 'unique_together': {('student', 'course', 'quiz')},
+ },
+ ),
+ ]
diff --git a/yaksh/migrations/0024_release_0_24_0.py b/yaksh/migrations/0024_release_0_24_0.py
new file mode 100644
index 0000000..60ffc23
--- /dev/null
+++ b/yaksh/migrations/0024_release_0_24_0.py
@@ -0,0 +1,19 @@
+# Generated by Django 3.0.7 on 2020-09-14 10:45
+
+from django.db import migrations, models
+import yaksh.models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('yaksh', '0023_release_0_23_0'),
+ ]
+
+ operations = [
+ migrations.AlterField(
+ model_name='assignmentupload',
+ name='assignmentFile',
+ field=models.FileField(max_length=255, upload_to=yaksh.models.get_assignment_dir),
+ ),
+ ]
diff --git a/yaksh/migrations/0025_release_0_26.py b/yaksh/migrations/0025_release_0_26.py
new file mode 100644
index 0000000..e619c93
--- /dev/null
+++ b/yaksh/migrations/0025_release_0_26.py
@@ -0,0 +1,70 @@
+# Generated by Django 3.0.7 on 2020-10-07 11:32
+
+from django.conf import settings
+from django.db import migrations, models
+import django.db.models.deletion
+import yaksh.models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('contenttypes', '0002_remove_content_type_name'),
+ migrations.swappable_dependency(settings.AUTH_USER_MODEL),
+ ('yaksh', '0024_release_0_24_0'),
+ ]
+
+ operations = [
+ migrations.CreateModel(
+ name='Topic',
+ fields=[
+ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+ ('name', models.CharField(max_length=255)),
+ ('description', models.TextField(blank=True, null=True)),
+ ],
+ ),
+ migrations.AddField(
+ model_name='lesson',
+ name='video_path',
+ field=models.CharField(blank=True, default=None, help_text='Youtube id, vimeo id, others', max_length=255, null=True),
+ ),
+ migrations.AlterField(
+ model_name='learningmodule',
+ name='check_prerequisite',
+ field=models.BooleanField(default=False),
+ ),
+ migrations.AlterField(
+ model_name='learningunit',
+ name='check_prerequisite',
+ field=models.BooleanField(default=False),
+ ),
+ migrations.AlterField(
+ model_name='lesson',
+ name='video_file',
+ field=models.FileField(blank=True, default=None, help_text='Please upload video files in mp4, ogv, webm format', max_length=255, null=True, upload_to=yaksh.models.get_file_dir),
+ ),
+ migrations.CreateModel(
+ name='TableOfContents',
+ fields=[
+ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+ ('time', models.CharField(default=0, max_length=100)),
+ ('content', models.IntegerField(choices=[(1, 'Topic'), (2, 'Graded Quiz'), (3, 'Exercise'), (4, 'Poll')])),
+ ('object_id', models.PositiveIntegerField()),
+ ('content_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='contenttypes.ContentType')),
+ ('course', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='course', to='yaksh.Course')),
+ ('lesson', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='contents', to='yaksh.Lesson')),
+ ],
+ options={
+ 'verbose_name_plural': 'Table Of Contents',
+ },
+ ),
+ migrations.CreateModel(
+ name='LessonQuizAnswer',
+ fields=[
+ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+ ('answer', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='yaksh.Answer')),
+ ('student', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
+ ('toc', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='yaksh.TableOfContents')),
+ ],
+ ),
+ ]
diff --git a/yaksh/migrations/0026_release_0_27_0.py b/yaksh/migrations/0026_release_0_27_0.py
new file mode 100644
index 0000000..bbfb4cc
--- /dev/null
+++ b/yaksh/migrations/0026_release_0_27_0.py
@@ -0,0 +1,34 @@
+# Generated by Django 3.0.7 on 2020-10-08 11:21
+
+from django.db import migrations, models
+import django.db.models.deletion
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('contenttypes', '0002_remove_content_type_name'),
+ ('yaksh', '0025_release_0_26'),
+ ]
+
+ operations = [
+ migrations.RemoveField(
+ model_name='post',
+ name='course',
+ ),
+ migrations.AddField(
+ model_name='forumbase',
+ name='anonymous',
+ field=models.BooleanField(default=False),
+ ),
+ migrations.AddField(
+ model_name='post',
+ name='target_ct',
+ field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='target_obj', to='contenttypes.ContentType'),
+ ),
+ migrations.AddField(
+ model_name='post',
+ name='target_id',
+ field=models.PositiveIntegerField(blank=True, db_index=True, null=True),
+ ),
+ ]
diff --git a/yaksh/migrations/0027_release_0_28_0.py b/yaksh/migrations/0027_release_0_28_0.py
new file mode 100644
index 0000000..a248665
--- /dev/null
+++ b/yaksh/migrations/0027_release_0_28_0.py
@@ -0,0 +1,18 @@
+# Generated by Django 3.0.7 on 2020-11-04 13:40
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('yaksh', '0026_release_0_27_0'),
+ ]
+
+ operations = [
+ migrations.AddField(
+ model_name='answer',
+ name='comment',
+ field=models.TextField(blank=True, null=True),
+ ),
+ ]