1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2024-12-24 23:25:24 +00:00

add missing migrations for new models

This commit is contained in:
catborise 2022-08-24 09:34:16 +03:00
parent f500d44492
commit 234638a85c
4 changed files with 171 additions and 0 deletions

View file

@ -0,0 +1,59 @@
# Generated by Django 3.2.15 on 2022-08-23 12:25
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('instances', '0010_auto_20220722_0812'),
]
operations = [
migrations.CreateModel(
name='CreateInstance',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(error_messages={'required': 'No Virtual Machine name has been entered'}, max_length=64)),
('firmware', models.CharField(max_length=50)),
('vcpu', models.IntegerField(error_messages={'required': 'No VCPU has been entered'})),
('vcpu_mode', models.CharField(blank=True, max_length=20)),
('disk', models.IntegerField(blank=True)),
('memory', models.IntegerField(error_messages={'required': 'No RAM size has been entered'})),
('networks', models.CharField(error_messages={'required': 'No Network pool has been choosen'}, max_length=256)),
('nwfilter', models.CharField(blank=True, max_length=256)),
('storage', models.CharField(blank=True, max_length=256)),
('template', models.CharField(blank=True, max_length=256)),
('images', models.CharField(blank=True, max_length=256)),
('cache_mode', models.CharField(error_messages={'required': 'Please select HDD cache mode'}, max_length=12)),
('hdd_size', models.IntegerField(blank=True)),
('meta_prealloc', models.BooleanField(blank=True, default=False)),
('virtio', models.BooleanField(default=True)),
('qemu_ga', models.BooleanField(default=False)),
('mac', models.CharField(blank=True, max_length=17)),
('console_pass', models.CharField(blank=True, max_length=64)),
('graphics', models.CharField(error_messages={'required': 'Please select a graphics type'}, max_length=12)),
('video', models.CharField(error_messages={'required': 'Please select a video driver'}, max_length=12)),
('listener_addr', models.CharField(choices=[('127.0.0.1', 'Localhost'), ('0.0.0.0', 'All interfaces')], max_length=20)),
],
options={
'managed': False,
},
),
migrations.CreateModel(
name='MigrateInstance',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('live', models.BooleanField(verbose_name='Live')),
('xml_del', models.BooleanField(default=True, verbose_name='Undefine XML')),
('offline', models.BooleanField(verbose_name='Offline')),
('autoconverge', models.BooleanField(default=True, verbose_name='Auto Converge')),
('compress', models.BooleanField(default=False, verbose_name='Compress')),
('postcopy', models.BooleanField(default=False, verbose_name='Post Copy')),
('unsafe', models.BooleanField(default=False, verbose_name='Unsafe')),
],
options={
'managed': False,
},
),
]

View file

@ -0,0 +1,27 @@
# Generated by Django 3.2.15 on 2022-08-23 12:25
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Interfaces',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(error_messages={'required': 'No interface name has been entered'}, max_length=20, verbose_name='name')),
('type', models.CharField(max_length=12, verbose_name='status')),
('state', models.CharField(max_length=100, verbose_name='device')),
('mac', models.CharField(max_length=24, verbose_name='forward')),
],
options={
'managed': False,
},
),
]

View file

@ -0,0 +1,27 @@
# Generated by Django 3.2.15 on 2022-08-23 12:25
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Networks',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(error_messages={'required': 'No network name has been entered'}, max_length=20, verbose_name='name')),
('status', models.CharField(max_length=12, verbose_name='status')),
('device', models.CharField(max_length=100, verbose_name='device')),
('forward', models.CharField(max_length=24, verbose_name='forward')),
],
options={
'managed': False,
},
),
]

View file

@ -0,0 +1,58 @@
# Generated by Django 3.2.15 on 2022-08-23 12:25
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Storage',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('state', models.IntegerField(verbose_name='state')),
('size', models.IntegerField(verbose_name='size')),
('free', models.IntegerField(verbose_name='free')),
('status', models.CharField(max_length=128, verbose_name='status')),
('path', models.CharField(max_length=128, verbose_name='path')),
('type', models.CharField(max_length=128, verbose_name='type')),
('autostart', models.BooleanField(verbose_name='autostart')),
],
options={
'managed': False,
},
),
migrations.CreateModel(
name='Storages',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(error_messages={'required': 'No pool name has been entered'}, max_length=20, verbose_name='name')),
('status', models.IntegerField(verbose_name='status')),
('type', models.CharField(max_length=100, verbose_name='type')),
('size', models.IntegerField(verbose_name='size')),
('volumes', models.IntegerField(verbose_name='volumes')),
],
options={
'managed': False,
},
),
migrations.CreateModel(
name='Volume',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=128, verbose_name='name')),
('type', models.CharField(choices=[('qcow2', 'qcow2 (recommended)'), ('qcow', 'qcow'), ('raw', 'raw')], max_length=12, verbose_name='format')),
('allocation', models.IntegerField(verbose_name='allocation')),
('size', models.IntegerField(verbose_name='size')),
],
options={
'verbose_name_plural': 'Volumes',
'managed': False,
},
),
]