initial
This commit is contained in:
80
proxmox/migrations/0001_initial.py
Normal file
80
proxmox/migrations/0001_initial.py
Normal file
@@ -0,0 +1,80 @@
|
||||
# Generated by Django 5.2.4 on 2025-07-07 11:19
|
||||
|
||||
import django.core.validators
|
||||
import uuid
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
initial = True
|
||||
|
||||
dependencies = [
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Lxc',
|
||||
fields=[
|
||||
('internal_id', models.BigAutoField(primary_key=True, serialize=False)),
|
||||
('vmid', models.IntegerField(blank=True, null=True, unique=True)),
|
||||
('name', models.CharField(blank=True, default='', max_length=150, null=True, verbose_name='Container Name')),
|
||||
('hostname', models.CharField(blank=True, default='', max_length=150, null=True)),
|
||||
('hwaddr', models.CharField(blank=True, default=uuid.uuid4, max_length=150, null=True, unique=True)),
|
||||
('size', models.CharField(blank=True, max_length=4, null=True)),
|
||||
('cores', models.IntegerField(blank=True, default=1, null=True)),
|
||||
('memory', models.IntegerField(default=512, help_text='in MB', validators=[django.core.validators.MinValueValidator(128)])),
|
||||
('disksize', models.IntegerField(default=12, help_text='in GB', validators=[django.core.validators.MinValueValidator(8)])),
|
||||
('swap', models.IntegerField(blank=True, null=True)),
|
||||
('description', models.TextField(blank=True, default='', null=True)),
|
||||
('cpus', models.IntegerField(blank=True, default=1, null=True, validators=[django.core.validators.MinValueValidator(1)])),
|
||||
('uptime', models.IntegerField(blank=True, null=True)),
|
||||
('maxswap', models.IntegerField(blank=True, null=True)),
|
||||
('cpu', models.IntegerField(blank=True, null=True)),
|
||||
('disk', models.IntegerField(blank=True, null=True)),
|
||||
('netout', models.IntegerField(blank=True, null=True)),
|
||||
('diskwrite', models.IntegerField(blank=True, null=True)),
|
||||
('diskread', models.IntegerField(blank=True, null=True)),
|
||||
('pid', models.IntegerField(blank=True, null=True)),
|
||||
('maxdisk', models.IntegerField(blank=True, null=True)),
|
||||
('mem', models.IntegerField(blank=True, null=True)),
|
||||
('maxmem', models.IntegerField(blank=True, null=True)),
|
||||
('netin', models.IntegerField(blank=True, null=True)),
|
||||
('status', models.CharField(blank=True, default='', max_length=150, null=True)),
|
||||
('type', models.CharField(blank=True, default='', max_length=150, null=True)),
|
||||
('onboot', models.CharField(blank=True, default='', max_length=150, null=True)),
|
||||
('nameserver', models.CharField(blank=True, default='', max_length=150, null=True)),
|
||||
('digest', models.CharField(blank=True, default='', max_length=150, null=True)),
|
||||
('rootfs', models.CharField(blank=True, default='', max_length=150, null=True)),
|
||||
('arch', models.CharField(blank=True, default='', max_length=150, null=True)),
|
||||
('ostype', models.CharField(blank=True, default='', max_length=150, null=True)),
|
||||
('net0', models.CharField(blank=True, default='', max_length=150, null=True)),
|
||||
('features', models.CharField(blank=True, default='', max_length=250, null=True)),
|
||||
('snaptime', models.CharField(blank=True, default='', max_length=150, null=True)),
|
||||
('parent', models.CharField(blank=True, default='', max_length=150, null=True)),
|
||||
('tags', models.CharField(blank=True, default='', max_length=250, null=True)),
|
||||
('console', models.CharField(blank=True, default='', max_length=150, null=True)),
|
||||
('tty', models.CharField(blank=True, default='', max_length=150, null=True)),
|
||||
('searchdomain', models.CharField(blank=True, default='', max_length=150, null=True)),
|
||||
('unprivileged', models.CharField(blank=True, default='', max_length=10, null=True)),
|
||||
('lxc', models.CharField(blank=True, default='', max_length=10, null=True)),
|
||||
],
|
||||
options={
|
||||
'abstract': False,
|
||||
},
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='LxcTemplate',
|
||||
fields=[
|
||||
('internal_id', models.BigAutoField(primary_key=True, serialize=False)),
|
||||
('volid', models.CharField(max_length=150, unique=True)),
|
||||
('ctime', models.IntegerField(default=0)),
|
||||
('size', models.IntegerField(default=0)),
|
||||
('format', models.CharField(max_length=10)),
|
||||
('content', models.CharField(default='tgz', max_length=10)),
|
||||
],
|
||||
options={
|
||||
'abstract': False,
|
||||
},
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,38 @@
|
||||
# Generated by Django 5.2.4 on 2025-07-08 11:21
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('proxmox', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='lxc',
|
||||
name='disk',
|
||||
field=models.CharField(blank=True, null=True),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='lxc',
|
||||
name='diskread',
|
||||
field=models.CharField(blank=True, null=True),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='lxc',
|
||||
name='diskwrite',
|
||||
field=models.CharField(blank=True, null=True),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='lxc',
|
||||
name='netout',
|
||||
field=models.CharField(blank=True, null=True),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='lxc',
|
||||
name='uptime',
|
||||
field=models.CharField(blank=True, null=True),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,23 @@
|
||||
# Generated by Django 5.2.4 on 2025-07-08 11:23
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('proxmox', '0002_alter_lxc_disk_alter_lxc_diskread_and_more'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='lxc',
|
||||
name='disksize',
|
||||
field=models.IntegerField(default=12, help_text='in GB'),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='lxc',
|
||||
name='memory',
|
||||
field=models.IntegerField(default=512, help_text='in MB'),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,74 @@
|
||||
# Generated by Django 5.2.4 on 2025-07-08 11:29
|
||||
|
||||
import django.core.validators
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('proxmox', '0003_alter_lxc_disksize_alter_lxc_memory'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='lxc',
|
||||
name='cores',
|
||||
field=models.BigIntegerField(blank=True, default=1, null=True),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='lxc',
|
||||
name='cpu',
|
||||
field=models.BigIntegerField(blank=True, null=True),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='lxc',
|
||||
name='cpus',
|
||||
field=models.BigIntegerField(blank=True, default=1, null=True, validators=[django.core.validators.MinValueValidator(1)]),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='lxc',
|
||||
name='disksize',
|
||||
field=models.BigIntegerField(default=12, help_text='in GB'),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='lxc',
|
||||
name='maxdisk',
|
||||
field=models.BigIntegerField(blank=True, null=True),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='lxc',
|
||||
name='maxmem',
|
||||
field=models.BigIntegerField(blank=True, null=True),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='lxc',
|
||||
name='maxswap',
|
||||
field=models.BigIntegerField(blank=True, null=True),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='lxc',
|
||||
name='mem',
|
||||
field=models.BigIntegerField(blank=True, null=True),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='lxc',
|
||||
name='memory',
|
||||
field=models.BigIntegerField(default=512, help_text='in MB'),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='lxc',
|
||||
name='netin',
|
||||
field=models.BigIntegerField(blank=True, null=True),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='lxc',
|
||||
name='pid',
|
||||
field=models.BigIntegerField(blank=True, null=True),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='lxc',
|
||||
name='swap',
|
||||
field=models.BigIntegerField(blank=True, null=True),
|
||||
),
|
||||
]
|
||||
18
proxmox/migrations/0005_alter_lxc_lxc.py
Normal file
18
proxmox/migrations/0005_alter_lxc_lxc.py
Normal file
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 5.2.4 on 2025-07-08 14:10
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('proxmox', '0004_alter_lxc_cores_alter_lxc_cpu_alter_lxc_cpus_and_more'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='lxc',
|
||||
name='lxc',
|
||||
field=models.CharField(blank=True, default='', max_length=150, null=True),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,36 @@
|
||||
# Generated by Django 5.2.4 on 2025-07-21 11:03
|
||||
|
||||
import django.utils.timezone
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('proxmox', '0005_alter_lxc_lxc'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='lxc',
|
||||
name='created_at',
|
||||
field=models.DateTimeField(auto_now_add=True, default=django.utils.timezone.now),
|
||||
preserve_default=False,
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='lxc',
|
||||
name='updated_at',
|
||||
field=models.DateTimeField(auto_now=True),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='lxctemplate',
|
||||
name='created_at',
|
||||
field=models.DateTimeField(auto_now_add=True, default=django.utils.timezone.now),
|
||||
preserve_default=False,
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='lxctemplate',
|
||||
name='updated_at',
|
||||
field=models.DateTimeField(auto_now=True),
|
||||
),
|
||||
]
|
||||
23
proxmox/migrations/0007_lxctemplate_net0_alter_lxc_net0.py
Normal file
23
proxmox/migrations/0007_lxctemplate_net0_alter_lxc_net0.py
Normal file
@@ -0,0 +1,23 @@
|
||||
# Generated by Django 5.2.4 on 2025-07-22 13:21
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('proxmox', '0006_lxc_created_at_lxc_updated_at_lxctemplate_created_at_and_more'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='lxctemplate',
|
||||
name='net0',
|
||||
field=models.CharField(blank=True, default='name=eth0,bridge=vmbr0,firewall=0,ip=dhcp', max_length=150, null=True),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='lxc',
|
||||
name='net0',
|
||||
field=models.CharField(blank=True, default='name=eth0,bridge=vmbr0,firewall=0,ip=dhcp', max_length=150, null=True),
|
||||
),
|
||||
]
|
||||
0
proxmox/migrations/__init__.py
Normal file
0
proxmox/migrations/__init__.py
Normal file
Reference in New Issue
Block a user