Commit b99f8bdf authored by Joseph Izon's avatar Joseph Izon 💀

Add migration files for model updates

parent 9c871bca
# Generated by Django 3.2.12 on 2022-05-25 02:55
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('homepage', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='widgetuser',
name='email',
field=models.EmailField(max_length=100, null=True),
),
migrations.AddField(
model_name='widgetuser',
name='id_num',
field=models.CharField(default=0, max_length=7),
),
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)),
('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='homepage.widgetuser')),
],
),
]
# Generated by Django 3.2.12 on 2022-05-25 03:26
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('homepage', '0002_auto_20220525_1055'),
]
operations = [
migrations.AlterField(
model_name='widgetuser',
name='id_num',
field=models.IntegerField(),
),
]
# Generated by Django 3.2.12 on 2022-05-25 03:42
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('homepage', '0003_alter_widgetuser_id_num'),
]
operations = [
migrations.AlterField(
model_name='widgetuser',
name='id_num',
field=models.CharField(default=0, max_length=7),
),
]
# Generated by Django 3.2.12 on 2022-05-25 05:58
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('homepage', '0004_alter_widgetuser_id_num'),
]
operations = [
migrations.AddField(
model_name='widgetuser',
name='image',
field=models.FileField(blank=True, null=True, upload_to='static/homepage/'),
),
]
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