Skip to content

Commit

Permalink
chore: update migrations from previous days work
Browse files Browse the repository at this point in the history
  • Loading branch information
jon-nfc committed Aug 23, 2024
1 parent 0020550 commit efce9c0
Show file tree
Hide file tree
Showing 5 changed files with 67 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Generated by Django 5.0.7 on 2024-08-17 08:05

from django.db import migrations


class Migration(migrations.Migration):

dependencies = [
('config_management', '0002_configgrouphosts_configgroupsoftware'),
]

operations = [
migrations.AlterModelOptions(
name='configgroups',
options={'verbose_name_plural': 'Config Groups'},
),
migrations.AlterModelOptions(
name='configgroupsoftware',
options={'ordering': ['-action', 'software'], 'verbose_name_plural': 'Config Group Softwares'},
),
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Generated by Django 5.0.7 on 2024-08-17 08:05

from django.db import migrations


class Migration(migrations.Migration):

dependencies = [
('core', '0002_notes'),
]

operations = [
migrations.AlterModelOptions(
name='manufacturer',
options={'ordering': ['name'], 'verbose_name_plural': 'Manufacturers'},
),
migrations.AlterModelOptions(
name='notes',
options={'ordering': ['-created'], 'verbose_name_plural': 'Notes'},
),
]
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 5.0.7 on 2024-07-21 02:35
# Generated by Django 5.0.7 on 2024-08-17 08:05

import django.db.models.deletion
from django.db import migrations, models
Expand All @@ -7,7 +7,7 @@
class Migration(migrations.Migration):

dependencies = [
('core', '0002_notes'),
('core', '0003_alter_manufacturer_options_alter_notes_options'),
('itim', '0001_initial'),
]

Expand Down
10 changes: 6 additions & 4 deletions app/itim/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 5.0.7 on 2024-07-21 02:35
# Generated by Django 5.0.7 on 2024-08-17 08:05

import access.fields
import access.models
Expand All @@ -14,7 +14,7 @@ class Migration(migrations.Migration):

dependencies = [
('access', '0001_initial'),
('itam', '0002_device_config'),
('itam', '0003_alter_device_options_alter_devicemodel_options_and_more'),
]

operations = [
Expand Down Expand Up @@ -43,11 +43,13 @@ class Migration(migrations.Migration):
('name', models.CharField(help_text='Name of the Cluster', max_length=50, verbose_name='Name')),
('slug', access.fields.AutoSlugField()),
('config', models.JSONField(blank=True, default=None, help_text='Cluster Configuration', null=True, verbose_name='Configuration')),
('created', access.fields.AutoCreatedField(default=django.utils.timezone.now, editable=False)),
('modified', access.fields.AutoLastModifiedField(default=django.utils.timezone.now, editable=False)),
('devices', models.ManyToManyField(blank=True, default=None, help_text='Devices that are deployed upon the cluster.', related_name='cluster_device', to='itam.device', verbose_name='Devices')),
('node', models.ManyToManyField(blank=True, default=None, help_text='Hosts for resource consumption that the cluster is deployed upon', related_name='cluster_node', to='itam.device', verbose_name='Nodes')),
('nodes', models.ManyToManyField(blank=True, default=None, help_text='Hosts for resource consumption that the cluster is deployed upon', related_name='cluster_node', to='itam.device', verbose_name='Nodes')),
('organization', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='access.organization', validators=[access.models.TenancyObject.validatate_organization_exists])),
('parent_cluster', models.ForeignKey(blank=True, default=None, help_text='Parent Cluster for this cluster', null=True, on_delete=django.db.models.deletion.CASCADE, to='itim.cluster', verbose_name='Parent Cluster')),
('cluster_type', models.ForeignKey(blank=True, default=None, help_text='Parent Cluster for this cluster', null=True, on_delete=django.db.models.deletion.CASCADE, to='itim.clustertype', verbose_name='Parent Cluster')),
('cluster_type', models.ForeignKey(blank=True, default=None, help_text='Type of Cluster', null=True, on_delete=django.db.models.deletion.CASCADE, to='itim.clustertype', verbose_name='Cluster Type')),
],
options={
'verbose_name': 'Cluster',
Expand Down
17 changes: 17 additions & 0 deletions app/settings/migrations/0003_alter_externallink_options.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Generated by Django 5.0.7 on 2024-08-17 08:05

from django.db import migrations


class Migration(migrations.Migration):

dependencies = [
('settings', '0002_externallink'),
]

operations = [
migrations.AlterModelOptions(
name='externallink',
options={'verbose_name_plural': 'External Links'},
),
]

0 comments on commit efce9c0

Please sign in to comment.