diff --git a/corpus/impulse/migrations/0001_initial.py b/corpus/impulse/migrations/0001_initial.py index 831f4258..21fa445b 100644 --- a/corpus/impulse/migrations/0001_initial.py +++ b/corpus/impulse/migrations/0001_initial.py @@ -1,4 +1,4 @@ -# Generated by Django 4.2.4 on 2023-12-30 08:40 +# Generated by Django 4.2.7 on 2023-12-31 06:42 from django.conf import settings from django.db import migrations, models @@ -32,18 +32,9 @@ class Migration(migrations.Migration): ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('from_nitk', models.BooleanField(default=True)), ('college_name', models.CharField(default='National Institute of Technology Karnataka', max_length=200)), - ('roll_no', models.CharField(max_length=8)), + ('roll_no', models.CharField(blank=True, max_length=8, null=True)), ('ieee_member', models.BooleanField(default=False)), ('ieee_membership_no', models.BigIntegerField(blank=True, null=True)), - ('is_member2', models.BooleanField(default=False)), - ('member2_name', models.CharField(blank=True, max_length=200, null=True)), - ('member2_email', models.EmailField(blank=True, max_length=254, null=True)), - ('member2_from_nitk', models.BooleanField(default=True)), - ('member2_college_name', models.CharField(default='National Institute of Technology Karnataka', max_length=200)), - ('member2_roll_no', models.CharField(blank=True, max_length=8, null=True)), - ('member2_phone', models.CharField(blank=True, max_length=13, null=True)), - ('member2_ieee_member', models.BooleanField(default=False)), - ('member2_ieee_membership_no', models.BigIntegerField(blank=True, null=True)), ], ), migrations.CreateModel( @@ -51,6 +42,15 @@ class Migration(migrations.Migration): fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('team_name', models.CharField(max_length=200)), + ('is_member', models.BooleanField(default=False)), + ('member_name', models.CharField(blank=True, max_length=200, null=True)), + ('member_email', models.EmailField(blank=True, max_length=254, null=True)), + ('member_from_nitk', models.BooleanField(default=True)), + ('member_college_name', models.CharField(default='National Institute of Technology Karnataka', max_length=200)), + ('member_roll_no', models.CharField(blank=True, max_length=8, null=True)), + ('member_phone', models.CharField(blank=True, max_length=13, null=True)), + ('member_ieee_member', models.BooleanField(default=False)), + ('member_ieee_membership_no', models.BigIntegerField(blank=True, null=True)), ('payment_status', models.CharField(choices=[('E', 'Exempt'), ('U', 'Fee Not Paid'), ('P', 'Fee Paid')], default='U', max_length=1)), ('payment_proof', models.ImageField(blank=True, null=True, upload_to='img/impulse/payment_proofs')), ('team_leader', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='leader', to='impulse.impulseuser')), diff --git a/corpus/impulse/migrations/0002_remove_impulseuser_is_member2_and_more.py b/corpus/impulse/migrations/0002_remove_impulseuser_is_member2_and_more.py deleted file mode 100644 index 8562486d..00000000 --- a/corpus/impulse/migrations/0002_remove_impulseuser_is_member2_and_more.py +++ /dev/null @@ -1,99 +0,0 @@ -# Generated by Django 4.2.7 on 2023-12-31 05:58 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('impulse', '0001_initial'), - ] - - operations = [ - migrations.RemoveField( - model_name='impulseuser', - name='is_member2', - ), - migrations.RemoveField( - model_name='impulseuser', - name='member2_college_name', - ), - migrations.RemoveField( - model_name='impulseuser', - name='member2_email', - ), - migrations.RemoveField( - model_name='impulseuser', - name='member2_from_nitk', - ), - migrations.RemoveField( - model_name='impulseuser', - name='member2_ieee_member', - ), - migrations.RemoveField( - model_name='impulseuser', - name='member2_ieee_membership_no', - ), - migrations.RemoveField( - model_name='impulseuser', - name='member2_name', - ), - migrations.RemoveField( - model_name='impulseuser', - name='member2_phone', - ), - migrations.RemoveField( - model_name='impulseuser', - name='member2_roll_no', - ), - migrations.AddField( - model_name='team', - name='is_member', - field=models.BooleanField(default=False), - ), - migrations.AddField( - model_name='team', - name='member_college_name', - field=models.CharField(default='National Institute of Technology Karnataka', max_length=200), - ), - migrations.AddField( - model_name='team', - name='member_email', - field=models.EmailField(blank=True, max_length=254, null=True), - ), - migrations.AddField( - model_name='team', - name='member_from_nitk', - field=models.BooleanField(default=True), - ), - migrations.AddField( - model_name='team', - name='member_ieee_member', - field=models.BooleanField(default=False), - ), - migrations.AddField( - model_name='team', - name='member_ieee_membership_no', - field=models.BigIntegerField(blank=True, null=True), - ), - migrations.AddField( - model_name='team', - name='member_name', - field=models.CharField(blank=True, max_length=200, null=True), - ), - migrations.AddField( - model_name='team', - name='member_phone', - field=models.CharField(blank=True, max_length=13, null=True), - ), - migrations.AddField( - model_name='team', - name='member_roll_no', - field=models.CharField(blank=True, max_length=8, null=True), - ), - migrations.AlterField( - model_name='impulseuser', - name='roll_no', - field=models.CharField(blank=True, max_length=8, null=True), - ), - ]