diff --git a/api/migrations/0043_order_latitude_order_longitude.py b/api/migrations/0043_order_latitude_order_longitude.py new file mode 100644 index 000000000..fe59aad31 --- /dev/null +++ b/api/migrations/0043_order_latitude_order_longitude.py @@ -0,0 +1,39 @@ +# Generated by Django 4.2.5 on 2023-10-03 20:12 + +import django.core.validators +from django.db import migrations, models + + +class Migration(migrations.Migration): + dependencies = [ + ("api", "0042_alter_order_logs_alter_robot_avatar"), + ] + + operations = [ + migrations.AddField( + model_name="order", + name="latitude", + field=models.DecimalField( + decimal_places=6, + max_digits=8, + null=True, + validators=[ + django.core.validators.MinValueValidator(-90), + django.core.validators.MaxValueValidator(90), + ], + ), + ), + migrations.AddField( + model_name="order", + name="longitude", + field=models.DecimalField( + decimal_places=6, + max_digits=9, + null=True, + validators=[ + django.core.validators.MinValueValidator(-180), + django.core.validators.MaxValueValidator(180), + ], + ), + ), + ]