initial
This commit is contained in:
40
manager/migrations/0002_clonecontainer_hostname_and_more.py
Normal file
40
manager/migrations/0002_clonecontainer_hostname_and_more.py
Normal file
@@ -0,0 +1,40 @@
|
||||
# Generated by Django 5.2.4 on 2025-07-09 06:31
|
||||
|
||||
import manager.models
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('manager', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='clonecontainer',
|
||||
name='hostname',
|
||||
field=models.CharField(default=0, help_text='Will be used as hostname', max_length=150),
|
||||
preserve_default=False,
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='clonecontainer',
|
||||
name='as_regexp',
|
||||
field=models.BooleanField(choices=[(False, 'No'), (True, 'Yes')], default=True, help_text='Add a ".*<hostname>.replace(".",r"\\.")$" instead of a hostname'),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='clonecontainer',
|
||||
name='cpus',
|
||||
field=models.IntegerField(default=1, validators=[manager.models.MinValueValidatorExtended(1), manager.models.MaxValueValidatorExtended(8)]),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='clonecontainer',
|
||||
name='disksize',
|
||||
field=models.IntegerField(default=10, help_text='in GB', validators=[manager.models.MinValueValidatorExtended(10), manager.models.MaxValueValidatorExtended(100)]),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='clonecontainer',
|
||||
name='memory',
|
||||
field=models.IntegerField(default=1024, help_text='in MB', validators=[manager.models.MinValueValidatorExtended(256), manager.models.MaxValueValidatorExtended(8192)]),
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user