Skip to content

Commit

Permalink
migration 0195 is invertible again
Browse files Browse the repository at this point in the history
  • Loading branch information
glbert-does committed Sep 10, 2023
1 parent 8043c71 commit d8b953c
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion heltour/tournament/migrations/0195_remove_registration_fields.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Generated by Django 2.2.28 between 2023-03-12 17:28 and 2023-03-22 13:58

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


class Migration(migrations.Migration):
Expand All @@ -9,7 +9,24 @@ class Migration(migrations.Migration):
('tournament', '0194_playerpairing_last_time_player_changed'),
]


operations = [
# Altering some fields to add defaults before removing them, so the deletions are invertible
migrations.AlterField(
model_name='registration',
name='classical_rating',
field=models.PositiveIntegerField(verbose_name='rating', default=0),
),
migrations.AlterField(
model_name='registration',
name='peak_classical_rating',
field=models.PositiveIntegerField(blank=True, null=True, verbose_name='peak rating', default=0),
),
migrations.AlterField(
model_name='registration',
name='already_in_slack_group',
field=models.BooleanField(default=False),
),
migrations.RemoveField(
model_name='registration',
name='classical_rating',
Expand Down

0 comments on commit d8b953c

Please sign in to comment.