summaryrefslogtreecommitdiff
path: root/yaksh/migrations
diff options
context:
space:
mode:
Diffstat (limited to 'yaksh/migrations')
-rw-r--r--yaksh/migrations/0018_auto_20200408_1206.py25
-rw-r--r--yaksh/migrations/0019_release_0_2_0.py70
2 files changed, 95 insertions, 0 deletions
diff --git a/yaksh/migrations/0018_auto_20200408_1206.py b/yaksh/migrations/0018_auto_20200408_1206.py
new file mode 100644
index 0000000..18320b8
--- /dev/null
+++ b/yaksh/migrations/0018_auto_20200408_1206.py
@@ -0,0 +1,25 @@
+# Generated by Django 3.0.3 on 2020-04-08 06:36
+
+import datetime
+from django.db import migrations, models
+from django.utils.timezone import utc
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('yaksh', '0017_release_0_14_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/0019_release_0_2_0.py b/yaksh/migrations/0019_release_0_2_0.py
new file mode 100644
index 0000000..512228f
--- /dev/null
+++ b/yaksh/migrations/0019_release_0_2_0.py
@@ -0,0 +1,70 @@
+# Generated by Django 3.0.3 on 2020-05-20 07:28
+
+import datetime
+from django.conf import settings
+from django.db import migrations, models
+import django.db.models.deletion
+from django.utils.timezone import utc
+import uuid
+import yaksh.models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ migrations.swappable_dependency(settings.AUTH_USER_MODEL),
+ ('yaksh', '0018_auto_20200408_1206'),
+ ]
+
+ operations = [
+ migrations.CreateModel(
+ name='ForumBase',
+ fields=[
+ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+ ('uid', models.UUIDField(default=uuid.uuid4, editable=False, unique=True)),
+ ('description', models.TextField()),
+ ('created_at', models.DateTimeField(auto_now_add=True)),
+ ('modified_at', models.DateTimeField(auto_now=True)),
+ ('image', models.ImageField(blank=True, null=True, upload_to=yaksh.models.get_image_dir, validators=[yaksh.models.validate_image])),
+ ('active', models.BooleanField(default=True)),
+ ('creator', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
+ ],
+ ),
+ migrations.AddField(
+ model_name='question',
+ name='topic',
+ field=models.CharField(blank=True, max_length=50, null=True),
+ ),
+ 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='question',
+ name='language',
+ field=models.CharField(choices=[('python', 'Python'), ('bash', 'Bash'), ('c', 'C Language'), ('cpp', 'C++ Language'), ('java', 'Java Language'), ('scilab', 'Scilab'), ('r', 'R'), ('other', 'Other')], max_length=24),
+ ),
+ 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'),
+ ),
+ migrations.CreateModel(
+ name='Post',
+ fields=[
+ ('forumbase_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='yaksh.ForumBase')),
+ ('title', models.CharField(max_length=200)),
+ ('course', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='post', to='yaksh.Course')),
+ ],
+ bases=('yaksh.forumbase',),
+ ),
+ migrations.CreateModel(
+ name='Comment',
+ fields=[
+ ('forumbase_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='yaksh.ForumBase')),
+ ('post_field', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='comment', to='yaksh.Post')),
+ ],
+ bases=('yaksh.forumbase',),
+ ),
+ ]