Added new migrations for Announcements app

parent 5efaa9c2
# Generated by Django 4.0.3 on 2022-04-05 04:20
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Announcement',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('announcement_title', models.CharField(max_length=100)),
('announcement_body', models.CharField(max_length=400)),
('pub_date', models.DateField(auto_now_add=True)),
],
),
]
# Generated by Django 4.0.3 on 2022-04-05 05:00
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('announcements', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Reaction',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('reaction_name', models.CharField(choices=[('Like', 'Like'), ('Love', 'Love'), ('Angry', 'Angry')], max_length=5)),
('tally', models.PositiveIntegerField()),
],
),
]
# Generated by Django 4.0.3 on 2022-04-05 06:52
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('homepage', '0001_initial'),
('announcements', '0002_reaction'),
]
operations = [
migrations.AddField(
model_name='announcement',
name='author',
field=models.ForeignKey(default=1, on_delete=django.db.models.deletion.CASCADE, to='homepage.widgetuser'),
preserve_default=False,
),
]
# Generated by Django 4.0.3 on 2022-04-05 08:27
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('announcements', '0003_announcement_author'),
]
operations = [
migrations.RemoveField(
model_name='reaction',
name='id',
),
migrations.AddField(
model_name='announcement',
name='reaction',
field=models.ForeignKey(blank=True, default=None, on_delete=django.db.models.deletion.CASCADE, to='announcements.reaction'),
),
migrations.AlterField(
model_name='reaction',
name='tally',
field=models.AutoField(primary_key=True, serialize=False),
),
]
# Generated by Django 4.0.3 on 2022-04-05 08:39
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('announcements', '0004_remove_reaction_id_announcement_reaction_and_more'),
]
operations = [
migrations.AlterField(
model_name='announcement',
name='announcement_body',
field=models.TextField(),
),
]
# Generated by Django 4.0.3 on 2022-04-05 08:53
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('announcements', '0005_alter_announcement_announcement_body'),
]
operations = [
migrations.RemoveField(
model_name='announcement',
name='reaction',
),
migrations.AddField(
model_name='reaction',
name='announcement',
field=models.ForeignKey(default=1, on_delete=django.db.models.deletion.CASCADE, to='announcements.announcement'),
preserve_default=False,
),
]
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