You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
jumpserver/apps/assets/migrations/0101_auto_20220803_1448.py

28 lines
896 B

# Generated by Django 3.2.14 on 2022-08-03 10:14
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('assets', '0100_auto_20220711_1413'),
]
operations = [
migrations.RenameField(
model_name='asset',
old_name='protocols',
new_name='_protocols',
),
migrations.CreateModel(
name='Protocol',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=32, verbose_name='Name')),
('port', models.IntegerField(verbose_name='Port')),
('asset', models.ForeignKey(on_delete=models.deletion.CASCADE, related_name='protocols', to='assets.asset', verbose_name='Asset')),
],
),
]