GameServerSupervisor/webpanel/migrations/0011_alter_server_port.py
Pratyush Desai 87feb8fda6
Improves handling port mapping
switched port field to a JSONField
adds a helper function to display server port mapping in admin
launching a container will map the ports appropriately
Instead of typing json to map ports we have a widget
replaced by such text fields. where one can + button to add or
- to remove
i.e.
 [container_port/proto]:[host_port]
At first port was an IntegerField.
Hence i added a manual migration which is the latest one
to get them  to be default:port(old value)

Signed-off-by: Pratyush Desai <pratyush.desai@liberta.casa>
2025-04-23 03:08:36 +05:30

19 lines
386 B
Python

# Generated by Django 5.1.5 on 2025-04-22 19:39
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("webpanel", "0010_alter_game_thumbnail"),
]
operations = [
migrations.AlterField(
model_name="server",
name="port",
field=models.JSONField(default=dict),
),
]