Skip to content

Commit

Permalink
Update migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
Princekumarofficial committed Oct 4, 2024
1 parent e1c1a04 commit 1151420
Show file tree
Hide file tree
Showing 17 changed files with 103 additions and 661 deletions.
Empty file removed api/migrations/__init__.py
Empty file.
362 changes: 83 additions & 279 deletions home/migrations/0001_initial.py

Large diffs are not rendered by default.

125 changes: 0 additions & 125 deletions home/migrations/0002_remove_allocationautumn22_month_and_more.py

This file was deleted.

17 changes: 0 additions & 17 deletions home/migrations/0003_allocationform_show_allocated.py

This file was deleted.

19 changes: 0 additions & 19 deletions home/migrations/0004_allocation_registration_time.py

This file was deleted.

25 changes: 0 additions & 25 deletions home/migrations/0005_alter_allocation_registration_time.py

This file was deleted.

24 changes: 20 additions & 4 deletions qrscan/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Generated by Django 5.0.8 on 2024-09-25 08:22
# Generated by Django 5.0.8 on 2024-10-04 11:03

import django.db.models.deletion
import uuid
from django.db import migrations, models


Expand All @@ -9,16 +10,31 @@ class Migration(migrations.Migration):
initial = True

dependencies = [
('home', '0005_alter_allocation_registration_time'),
('home', '0001_initial'),
]

operations = [
migrations.CreateModel(
name='MessCard',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('qr_code', models.ImageField(blank=True, help_text='This contains', null=True, upload_to='qr_codes/')),
('id', models.UUIDField(default=uuid.uuid4, editable=False, help_text='This contains the unique id of the mess card', primary_key=True, serialize=False, unique=True)),
('qr_code', models.ImageField(blank=True, help_text='This contains the qr code image', null=True, upload_to='qr_codes/')),
('allocation', models.ForeignKey(blank=True, help_text='This contains the allocation details', null=True, on_delete=django.db.models.deletion.CASCADE, to='home.allocation')),
('student', models.ForeignKey(blank=True, help_text='This contains the student details', null=True, on_delete=django.db.models.deletion.CASCADE, to='home.student')),
],
),
migrations.CreateModel(
name='Meal',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('date', models.DateField(auto_now_add=True, help_text='This contains the date of the meal')),
('breakfast', models.BooleanField(default=False, help_text='This contains the breakfast status')),
('lunch', models.BooleanField(default=False, help_text='This contains the lunch status')),
('dinner', models.BooleanField(default=False, help_text='This contains the dinner status')),
('mess_card', models.ForeignKey(blank=True, help_text='This contains the mess card details', null=True, on_delete=django.db.models.deletion.CASCADE, to='qrscan.messcard')),
],
options={
'unique_together': {('mess_card', 'date')},
},
),
]
18 changes: 0 additions & 18 deletions qrscan/migrations/0002_messcard_secret_key.py

This file was deleted.

19 changes: 0 additions & 19 deletions qrscan/migrations/0003_alter_messcard_secret_key.py

This file was deleted.

18 changes: 0 additions & 18 deletions qrscan/migrations/0004_alter_messcard_qr_code.py

This file was deleted.

20 changes: 0 additions & 20 deletions qrscan/migrations/0005_messcard_student.py

This file was deleted.

19 changes: 0 additions & 19 deletions qrscan/migrations/0006_alter_messcard_secret_key.py

This file was deleted.

25 changes: 0 additions & 25 deletions qrscan/migrations/0007_meal.py

This file was deleted.

19 changes: 0 additions & 19 deletions qrscan/migrations/0008_alter_messcard_id.py

This file was deleted.

17 changes: 0 additions & 17 deletions qrscan/migrations/0009_remove_messcard_secret_key.py

This file was deleted.

Loading

0 comments on commit 1151420

Please sign in to comment.