Commit cbe69b43 authored by Stephanie Tullao's avatar Stephanie Tullao

Added migration files

parent adcb3764
# 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',
),
]
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