Initialize clean CSR inventory repository
This commit is contained in:
16
inventory/migrations/0006_device_revision.py
Normal file
16
inventory/migrations/0006_device_revision.py
Normal file
@@ -0,0 +1,16 @@
|
||||
from django.db import migrations, models
|
||||
import django.utils.timezone
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
dependencies = [("inventory", "0005_auditlog_api_client_device_hwid_inventoryapikey")]
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name="device", name="revision",
|
||||
field=models.PositiveBigIntegerField(default=1, editable=False),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name="device", name="updated_at",
|
||||
field=models.DateTimeField(default=django.utils.timezone.now, editable=False),
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user