perf: add nec vnc component and endpoint migrations

This commit is contained in:
Eric
2024-11-11 15:59:28 +08:00
committed by 老广
parent 5724912480
commit b660bfb7ff
6 changed files with 36 additions and 2 deletions

View File

@@ -357,7 +357,7 @@ class Migration(migrations.Migration):
('comment', models.TextField(blank=True, default='', verbose_name='Comment')),
('id', models.UUIDField(default=uuid.uuid4, primary_key=True, serialize=False)),
('name', models.CharField(max_length=128, verbose_name='Name')),
('type', models.CharField(choices=[('koko', 'KoKo'), ('guacamole', 'Guacamole'), ('omnidb', 'OmniDB'), ('xrdp', 'Xrdp'), ('lion', 'Lion'), ('core', 'Core'), ('celery', 'Celery'), ('magnus', 'Magnus'), ('razor', 'Razor'), ('tinker', 'Tinker'), ('video_worker', 'Video Worker'), ('chen', 'Chen'), ('kael', 'Kael'), ('panda', 'Panda')], default='koko', max_length=64, verbose_name='type')),
('type', models.CharField(choices=[('koko', 'KoKo'), ('guacamole', 'Guacamole'), ('omnidb', 'OmniDB'), ('xrdp', 'Xrdp'), ('lion', 'Lion'), ('core', 'Core'), ('celery', 'Celery'), ('magnus', 'Magnus'), ('razor', 'Razor'), ('tinker', 'Tinker'), ('video_worker', 'Video Worker'), ('chen', 'Chen'), ('kael', 'Kael'), ('panda', 'Panda'), ('nec', 'Nec'), ('facelive', 'Facelive')], default='koko', max_length=64, verbose_name='type')),
('remote_addr', models.CharField(blank=True, max_length=128, verbose_name='Remote Address')),
('command_storage', models.CharField(default='default', max_length=128, verbose_name='Command storage')),
('replay_storage', models.CharField(default='default', max_length=128, verbose_name='Replay storage')),

View File

@@ -0,0 +1,21 @@
# Generated by Django 4.1.13 on 2024-11-11 09:32
import django.core.validators
from django.db import migrations
import common.db.fields
class Migration(migrations.Migration):
dependencies = [
('terminal', '0004_endpoint_is_active'),
]
operations = [
migrations.AddField(
model_name='endpoint',
name='vnc_port',
field=common.db.fields.PortField(default=5900, validators=[django.core.validators.MinValueValidator(0), django.core.validators.MaxValueValidator(65535)], verbose_name='VNC port'),
),
]