Skip to content

Commit f687c50

Browse files
committed
Alter Appointment#number field to CharField
This is only populated for booked screening appointments otherwise blank.
1 parent 98930a1 commit f687c50

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Generated by Django 5.2.6 on 2025-10-02 09:31
2+
3+
from django.db import migrations, models
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
('notifications', '0018_alter_appointment_status'),
10+
]
11+
12+
operations = [
13+
migrations.AlterField(
14+
model_name='appointment',
15+
name='number',
16+
field=models.CharField(max_length=30, null=True),
17+
),
18+
]

manage_breast_screening/notifications/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ class Meta:
128128
booked_at = models.DateTimeField(null=True)
129129
cancelled_by = models.CharField(max_length=50)
130130
cancelled_at = models.DateTimeField(null=True)
131-
number = models.IntegerField(null=True, default=1)
131+
number = models.CharField(max_length=30, null=True)
132132
starts_at = models.DateTimeField(null=False)
133133
created_at = models.DateTimeField(null=False, auto_now_add=True)
134134
updated_at = models.DateTimeField(null=True, auto_now=True)

0 commit comments

Comments
 (0)