flushed database, migrated database for all models

parent 41907f71
# Generated by Django 3.2.12 on 2022-04-04 12:49
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('Assignments', '0006_alter_assignment_course'),
]
operations = [
migrations.AlterField(
model_name='assignment',
name='course',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='requirements', to='Assignments.course'),
),
]
# Generated by Django 3.2.12 on 2022-04-04 12:49
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('Homepage', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Department',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('dept_name', models.CharField(max_length=50)),
('home_unit', models.CharField(max_length=50)),
],
),
migrations.AddField(
model_name='widgetuser',
name='email',
field=models.EmailField(default='franco.velasco@obf.ateneo.edu', max_length=254),
preserve_default=False,
),
migrations.AddField(
model_name='widgetuser',
name='id_num',
field=models.IntegerField(default=42069),
preserve_default=False,
),
migrations.AddField(
model_name='widgetuser',
name='department',
field=models.ForeignKey(default=420, on_delete=django.db.models.deletion.CASCADE, to='Homepage.department'),
preserve_default=False,
),
]
No preview for this file type
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