2
0
Fork 0

Change id field on IncomingMessage to BigInteger

This commit is contained in:
Luca 2023-05-07 02:08:20 +02:00
parent 23a95499b8
commit 63925b2893
2 changed files with 18 additions and 1 deletions

View File

@ -0,0 +1,17 @@
# Generated by Django 4.0.4 on 2023-05-07 00:07
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("team", "0001_initial"),
]
operations = [
migrations.AlterField(
model_name="incomingmessage",
name="id",
field=models.BigIntegerField(primary_key=True, serialize=False),
),
]

View File

@ -9,7 +9,7 @@ class IncomingMessage(models.Model):
class Meta:
get_latest_by = "created_at"
id = models.IntegerField(primary_key=True)
id = models.BigIntegerField(primary_key=True)
sender = PhoneNumberField()
content = models.TextField()
created_at = models.DateTimeField()