Added migration files

parent 7084a4df
# Generated by Django 4.0.3 on 2022-03-22 14:13
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Assignment',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=50)),
('description', models.CharField(max_length=500)),
('max_points', models.IntegerField()),
],
),
]
# Generated by Django 4.0.3 on 2022-03-17 15:19
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Event',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('target_date', models.DateField()),
('activity', models.CharField(max_length=150)),
('estimated_hours', models.FloatField()),
],
),
]
# Generated by Django 4.0.3 on 2022-03-19 17:29
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Post',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('post_title', models.CharField(max_length=150)),
('post_body', models.TextField()),
('pub_date', models.DateField(auto_now=True)),
],
),
]
# Generated by Django 4.0.3 on 2022-04-02 07:06
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('homepage', '0006_alter_widgetuser_department_and_more'),
('forum', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='post',
name='author',
field=models.ForeignKey(default='', on_delete=django.db.models.deletion.CASCADE, related_name='posts', to='homepage.widgetuser'),
preserve_default=False,
),
migrations.AlterField(
model_name='post',
name='pub_date',
field=models.DateField(auto_now_add=True),
),
migrations.CreateModel(
name='Reply',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('reply_body', models.TextField()),
('pub_date', models.DateField(auto_now_add=True)),
('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='replies', to='homepage.widgetuser')),
('og_post', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='replies', to='forum.post')),
],
),
]
# Generated by Django 4.0.3 on 2022-04-02 07:31
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('forum', '0002_post_author_alter_post_pub_date_reply'),
]
operations = [
migrations.RenameField(
model_name='reply',
old_name='og_post',
new_name='original_post',
),
]
# Generated by Django 4.0.3 on 2022-03-21 09:09
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
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=124)),
('home_unit', models.CharField(max_length=124)),
],
),
migrations.CreateModel(
name='WidgetUser',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('first_name', models.CharField(max_length=35)),
('middle_name', models.CharField(max_length=20)),
('last_name', models.CharField(max_length=20)),
('id_num', models.IntegerField(validators=[django.core.validators.MinValueValidator(1), django.core.validators.MaxValueValidator(9999999)])),
('email', models.EmailField(max_length=254)),
('department', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='homepage.department')),
],
),
]
# Generated by Django 4.0.3 on 2022-03-21 09:11
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('homepage', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='widgetuser',
name='id_num',
field=models.IntegerField(),
),
]
# Generated by Django 4.0.3 on 2022-03-21 09:18
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('homepage', '0002_alter_widgetuser_id_num'),
]
operations = [
migrations.AlterField(
model_name='widgetuser',
name='email',
field=models.EmailField(default='', max_length=254),
),
migrations.AlterField(
model_name='widgetuser',
name='id_num',
field=models.IntegerField(default=''),
),
]
# Generated by Django 4.0.3 on 2022-03-21 09:21
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('homepage', '0003_alter_widgetuser_email_alter_widgetuser_id_num'),
]
operations = [
migrations.AlterField(
model_name='widgetuser',
name='id_num',
field=models.IntegerField(default='', validators=[django.core.validators.MinValueValidator(1), django.core.validators.MaxValueValidator(9999999)]),
),
]
# Generated by Django 4.0.3 on 2022-03-23 07:38
from django.db import migrations, models
import homepage.models
class Migration(migrations.Migration):
dependencies = [
('homepage', '0004_alter_widgetuser_id_num'),
]
operations = [
migrations.AlterField(
model_name='widgetuser',
name='id_num',
field=models.CharField(default='', max_length=7, validators=[homepage.models.WidgetUser.ID_validator]),
),
]
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