|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
# Generated by Django 1.11 on 2018-02-25 10:15
|
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
|
|
|
import assets.models.asset
|
|
|
|
from django.db import migrations, models
|
|
|
|
import django.db.models.deletion
|
|
|
|
import uuid
|
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
|
|
|
|
dependencies = [
|
|
|
|
('assets', '0006_auto_20180130_1502'),
|
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.CreateModel(
|
|
|
|
name='Node',
|
|
|
|
fields=[
|
|
|
|
('id', models.UUIDField(default=uuid.uuid4, primary_key=True, serialize=False)),
|
|
|
|
('key', models.CharField(max_length=64, unique=True, verbose_name='Key')),
|
|
|
|
('value', models.CharField(max_length=128, unique=True, verbose_name='Value')),
|
|
|
|
('child_mark', models.IntegerField(default=0)),
|
|
|
|
('date_create', models.DateTimeField(auto_now_add=True)),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
migrations.RemoveField(
|
|
|
|
model_name='asset',
|
|
|
|
name='cluster',
|
|
|
|
),
|
|
|
|
migrations.RemoveField(
|
|
|
|
model_name='asset',
|
|
|
|
name='groups',
|
|
|
|
),
|
|
|
|
migrations.RemoveField(
|
|
|
|
model_name='systemuser',
|
|
|
|
name='cluster',
|
|
|
|
),
|
|
|
|
migrations.AlterField(
|
|
|
|
model_name='asset',
|
|
|
|
name='admin_user',
|
|
|
|
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.PROTECT, to='assets.AdminUser', verbose_name='Admin user'),
|
|
|
|
),
|
|
|
|
migrations.AlterField(
|
|
|
|
model_name='systemuser',
|
|
|
|
name='protocol',
|
|
|
|
field=models.CharField(choices=[('ssh', 'ssh'), ('rdp', 'rdp')], default='ssh', max_length=16, verbose_name='Protocol'),
|
|
|
|
),
|
|
|
|
migrations.AddField(
|
|
|
|
model_name='asset',
|
|
|
|
name='nodes',
|
|
|
|
field=models.ManyToManyField(default=assets.models.default_node, related_name='assets', to='assets.Node', verbose_name='Nodes'),
|
|
|
|
),
|
|
|
|
migrations.AddField(
|
|
|
|
model_name='systemuser',
|
|
|
|
name='nodes',
|
|
|
|
field=models.ManyToManyField(blank=True, to='assets.Node', verbose_name='Nodes'),
|
|
|
|
),
|
|
|
|
]
|