Skip to content

Commit 8fcc265

Browse files
committed
makemigrations resulting in additional migration
db_index=True is missing from both devices making the 'makemigrations' command result in extra migration in the package
1 parent f21a4d4 commit 8fcc265

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

push_notifications/migrations/0001_initial.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class Migration(migrations.Migration):
2020
('name', models.CharField(max_length=255, null=True, verbose_name='Name', blank=True)),
2121
('active', models.BooleanField(default=True, help_text='Inactive devices will not be sent notifications', verbose_name='Is active')),
2222
('date_created', models.DateTimeField(auto_now_add=True, verbose_name='Creation date', null=True)),
23-
('device_id', models.UUIDField(help_text=b'UDID / UIDevice.identifierForVendor()', max_length=32, null=True, verbose_name='Device ID', blank=True)),
23+
('device_id', models.UUIDField(help_text=b'UDID / UIDevice.identifierForVendor()', max_length=32, null=True, verbose_name='Device ID', blank=True, db_index=True)),
2424
('registration_id', models.CharField(unique=True, max_length=64, verbose_name='Registration ID')),
2525
('user', models.ForeignKey(blank=True, to=settings.AUTH_USER_MODEL, null=True)),
2626
],
@@ -36,7 +36,7 @@ class Migration(migrations.Migration):
3636
('name', models.CharField(max_length=255, null=True, verbose_name='Name', blank=True)),
3737
('active', models.BooleanField(default=True, help_text='Inactive devices will not be sent notifications', verbose_name='Is active')),
3838
('date_created', models.DateTimeField(auto_now_add=True, verbose_name='Creation date', null=True)),
39-
('device_id', push_notifications.fields.HexIntegerField(help_text=b'ANDROID_ID / TelephonyManager.getDeviceId() (always as hex)', null=True, verbose_name='Device ID', blank=True)),
39+
('device_id', push_notifications.fields.HexIntegerField(help_text=b'ANDROID_ID / TelephonyManager.getDeviceId() (always as hex)', null=True, verbose_name='Device ID', blank=True, db_index=True)),
4040
('registration_id', models.TextField(verbose_name='Registration ID')),
4141
('user', models.ForeignKey(blank=True, to=settings.AUTH_USER_MODEL, null=True)),
4242
],

0 commit comments

Comments
 (0)