1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-12-01 08:26:03 +00:00
webvirtcloud/instances/migrations/0016_vm_name_length.py
catborise 373760f2c5 fix(instances): a VM name of any length libvirt takes is kept
libvirt names a VM by its <name>.xml file, so a name can have up to 251
bytes. The panel's VM, removed-VM and log records held 120 characters:
on PostgreSQL one longer name made the host's sync fail and the VM list
answer with an error. They now hold 255.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Kk4h2TcUiaWmU5MUszYSea
2026-11-10 13:11:22 +03:00

23 lines
593 B
Python

# Generated by Django 5.2.18 on 2026-11-09 18:20
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('instances', '0015_remove_api_only_models'),
]
operations = [
migrations.AlterField(
model_name='instance',
name='name',
field=models.CharField(db_index=True, max_length=255, verbose_name='name'),
),
migrations.AlterField(
model_name='instancetombstone',
name='name',
field=models.CharField(max_length=255),
),
]