From e36b56de6a03fab596c473416111b3a9a69e0ddf Mon Sep 17 00:00:00 2001 From: Ishaan Mittal Date: Sat, 17 Aug 2024 20:10:47 +0530 Subject: [PATCH] migrate and keep adding --- .gitignore | 1 - ...emove_allocationautumn23_month_and_more.py | 101 ++++++++++++++++++ 2 files changed, 101 insertions(+), 1 deletion(-) create mode 100644 home/migrations/0002_remove_allocationautumn23_month_and_more.py diff --git a/.gitignore b/.gitignore index 7f86a49..699b170 100644 --- a/.gitignore +++ b/.gitignore @@ -3,7 +3,6 @@ db.sqlite3 db1.sqlite3 __pycache__ -migrations venv .venv media diff --git a/home/migrations/0002_remove_allocationautumn23_month_and_more.py b/home/migrations/0002_remove_allocationautumn23_month_and_more.py new file mode 100644 index 0000000..d88a175 --- /dev/null +++ b/home/migrations/0002_remove_allocationautumn23_month_and_more.py @@ -0,0 +1,101 @@ +# Generated by Django 5.0.3 on 2024-08-17 14:38 + +import django.db.models.deletion +from django.db import migrations, models + + +class Migration(migrations.Migration): + dependencies = [ + ("home", "0001_initial"), + ] + + operations = [ + migrations.RemoveField( + model_name="allocationautumn23", + name="month", + ), + migrations.RemoveField( + model_name="allocationautumn23", + name="roll_no", + ), + migrations.RemoveField( + model_name="allocationspring23", + name="month", + ), + migrations.RemoveField( + model_name="allocationspring23", + name="roll_no", + ), + migrations.AlterField( + model_name="scan", + name="student_id", + field=models.ForeignKey( + default=0, + null=True, + on_delete=django.db.models.deletion.SET_NULL, + to="home.student", + ), + ), + migrations.RemoveField( + model_name="catererbillsautumn22", + name="caterer", + ), + migrations.RemoveField( + model_name="catererbillsautumn23", + name="caterer", + ), + migrations.RemoveField( + model_name="catererbillsspring23", + name="caterer", + ), + migrations.AddField( + model_name="longrebate", + name="reason", + field=models.TextField( + blank=True, + choices=[ + ("", "Choose the reason"), + ( + "Incomplete form. Please submit a new rebate application", + "Incomplete form", + ), + ( + "Signature of approving authority missing. Please submit a new rebate application", + "Signature missing", + ), + ( + "Attached file is not the rebate form. Please submit a new rebate application with correct attachment", + "Wrong attached document", + ), + ( + "There is a date mismatch between the one written in the form and the one in the attached form. Please submit a new rebate application", + "There is a date mismatch between the one written in the form and the one in the attached form", + ), + ], + default="", + ), + ), + migrations.AlterField( + model_name="rule", + name="sno", + field=models.AutoField(primary_key=True, serialize=False), + ), + migrations.DeleteModel( + name="AllocationAutumn22", + ), + migrations.DeleteModel( + name="AllocationAutumn23", + ), + migrations.DeleteModel( + name="AllocationSpring23", + ), + migrations.DeleteModel( + name="CatererBillsAutumn22", + ), + migrations.DeleteModel( + name="CatererBillsAutumn23", + ), + migrations.DeleteModel( + name="CatererBillsSpring23", + ), + ]