Commit 9e6101ee authored by Jan Ericsson Ong Ang's avatar Jan Ericsson Ong Ang

migrations for assignments is fixed

parent 22e4b5fe
.env
__pycache__
*.pyc
\ No newline at end of file
# Generated by Django 4.1.7 on 2023-03-06 10:10
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Course',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('code', models.CharField(max_length=10)),
('title', models.CharField(max_length=100)),
('section', models.CharField(max_length=3)),
],
),
migrations.CreateModel(
name='Assignment',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=100)),
('description', models.CharField(max_length=1000)),
('perfect_score', models.IntegerField(default=0)),
('passing_score', models.IntegerField(default=0)),
('course', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='assignments.course')),
],
),
]
# Generated by Django 4.1.7 on 2023-03-06 10:07
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('assignments', '__first__'),
('calendar_app', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='event',
name='activity',
field=models.CharField(max_length=50, verbose_name='Activity: '),
),
migrations.AlterField(
model_name='event',
name='course',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='assignments.course'),
),
migrations.AlterField(
model_name='event',
name='estimated_hours',
field=models.FloatField(max_length=50, verbose_name='Estimated Hours: '),
),
migrations.AlterField(
model_name='event',
name='target_datetime',
field=models.DateTimeField(max_length=50, verbose_name='Date and Time: '),
),
]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment