Change id field on IncomingMessage to BigInteger
This commit is contained in:
parent
23a95499b8
commit
63925b2893
|
@ -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),
|
||||||
|
),
|
||||||
|
]
|
|
@ -9,7 +9,7 @@ class IncomingMessage(models.Model):
|
||||||
class Meta:
|
class Meta:
|
||||||
get_latest_by = "created_at"
|
get_latest_by = "created_at"
|
||||||
|
|
||||||
id = models.IntegerField(primary_key=True)
|
id = models.BigIntegerField(primary_key=True)
|
||||||
sender = PhoneNumberField()
|
sender = PhoneNumberField()
|
||||||
content = models.TextField()
|
content = models.TextField()
|
||||||
created_at = models.DateTimeField()
|
created_at = models.DateTimeField()
|
||||||
|
|
Loading…
Reference in New Issue