diff --git a/src/sensor/settings.py b/src/sensor/settings.py index f8625a36..96f7151f 100644 --- a/src/sensor/settings.py +++ b/src/sensor/settings.py @@ -457,3 +457,6 @@ USB_DEVICE = env("USB_DEVICE", default=None) STARTUP_CALIBRATION_ACTION = env("STARTUP_CALIBRATION_ACTION", default=None) RAY_INIT = env.bool("RAY_INIT", default=False) + +# Set default field type for Django auto-created primary keys +DEFAULT_AUTO_FIELD = "django.db.models.AutoField" diff --git a/src/status/migrations/0004_auto_20240510_1334.py b/src/status/migrations/0004_auto_20240510_1334.py new file mode 100644 index 00000000..0448f838 --- /dev/null +++ b/src/status/migrations/0004_auto_20240510_1334.py @@ -0,0 +1,31 @@ +# Generated by Django 3.2.25 on 2024-05-10 13:34 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("status", "0003_auto_20211217_2229"), + ] + + operations = [ + migrations.AlterField( + model_name="location", + name="latitude", + field=models.DecimalField( + decimal_places=6, + help_text="Latitude of the sensor in decimal degrees (WGS84).", + max_digits=9, + ), + ), + migrations.AlterField( + model_name="location", + name="longitude", + field=models.DecimalField( + decimal_places=6, + help_text="Longitude of the sensor in decimal degrees (WGS84).", + max_digits=9, + ), + ), + ] diff --git a/src/tasks/migrations/0006_alter_taskresult_duration.py b/src/tasks/migrations/0006_alter_taskresult_duration.py new file mode 100644 index 00000000..89ebbbff --- /dev/null +++ b/src/tasks/migrations/0006_alter_taskresult_duration.py @@ -0,0 +1,23 @@ +# Generated by Django 3.2.25 on 2024-05-10 13:34 + +import datetime + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("tasks", "0005_acquisition_data_encrypted"), + ] + + operations = [ + migrations.AlterField( + model_name="taskresult", + name="duration", + field=models.DurationField( + default=datetime.timedelta(0), + help_text="Task duration, in %H:%M:%S.%f format", + ), + ), + ]