Skip to content

Commit

Permalink
fixed fk problem
Browse files Browse the repository at this point in the history
  • Loading branch information
Nik Sauer committed Dec 9, 2024
1 parent 47ed522 commit b4b7ced
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name='sensor',
name='id',
field=models.CharField(max_length=255, primary_key=True),
field=models.AutoField(primary_key=True),
),
migrations.DeleteModel(
name='DeviceModel',
Expand Down
18 changes: 18 additions & 0 deletions app/devices/migrations/0005_alter_sensor_id.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 5.1.2 on 2024-12-09 14:16

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('devices', '0004_alter_device_model_remove_device_sensor_bme280_and_more'),
]

operations = [
migrations.AlterField(
model_name='sensor',
name='id',
field=models.AutoField(primary_key=True, serialize=False),
),
]

0 comments on commit b4b7ced

Please sign in to comment.