From 8cb918eee516461910b8af548e88efd744e1d5d5 Mon Sep 17 00:00:00 2001 From: aditya Date: Wed, 20 May 2020 14:47:36 +0530 Subject: Rename migration file --- yaksh/migrations/0019_release_0_20_0.py | 70 +++++++++++++++++++++++++++++++++ yaksh/migrations/0019_release_0_2_0.py | 70 --------------------------------- 2 files changed, 70 insertions(+), 70 deletions(-) create mode 100644 yaksh/migrations/0019_release_0_20_0.py delete mode 100644 yaksh/migrations/0019_release_0_2_0.py diff --git a/yaksh/migrations/0019_release_0_20_0.py b/yaksh/migrations/0019_release_0_20_0.py new file mode 100644 index 0000000..7881ed7 --- /dev/null +++ b/yaksh/migrations/0019_release_0_20_0.py @@ -0,0 +1,70 @@ +# Generated by Django 3.0.3 on 2020-05-20 09:16 + +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',), + ), + ] diff --git a/yaksh/migrations/0019_release_0_2_0.py b/yaksh/migrations/0019_release_0_2_0.py deleted file mode 100644 index 512228f..0000000 --- a/yaksh/migrations/0019_release_0_2_0.py +++ /dev/null @@ -1,70 +0,0 @@ -# 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',), - ), - ] -- cgit