From efce9c0219a9b5324253ae8aeb1e8220f71db975 Mon Sep 17 00:00:00 2001 From: Jon Date: Sat, 17 Aug 2024 17:42:50 +0930 Subject: [PATCH] chore: update migrations from previous days work ref: #244 #71 #245 --- ...003_alter_configgroups_options_and_more.py | 21 +++++++++++++++++++ ...anufacturer_options_alter_notes_options.py | 21 +++++++++++++++++++ ...notes_service.py => 0004_notes_service.py} | 4 ++-- app/itim/migrations/0001_initial.py | 10 +++++---- .../0003_alter_externallink_options.py | 17 +++++++++++++++ 5 files changed, 67 insertions(+), 6 deletions(-) create mode 100644 app/config_management/migrations/0003_alter_configgroups_options_and_more.py create mode 100644 app/core/migrations/0003_alter_manufacturer_options_alter_notes_options.py rename app/core/migrations/{0003_notes_service.py => 0004_notes_service.py} (78%) create mode 100644 app/settings/migrations/0003_alter_externallink_options.py diff --git a/app/config_management/migrations/0003_alter_configgroups_options_and_more.py b/app/config_management/migrations/0003_alter_configgroups_options_and_more.py new file mode 100644 index 000000000..793c637e6 --- /dev/null +++ b/app/config_management/migrations/0003_alter_configgroups_options_and_more.py @@ -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'}, + ), + ] diff --git a/app/core/migrations/0003_alter_manufacturer_options_alter_notes_options.py b/app/core/migrations/0003_alter_manufacturer_options_alter_notes_options.py new file mode 100644 index 000000000..97f1c6564 --- /dev/null +++ b/app/core/migrations/0003_alter_manufacturer_options_alter_notes_options.py @@ -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'}, + ), + ] diff --git a/app/core/migrations/0003_notes_service.py b/app/core/migrations/0004_notes_service.py similarity index 78% rename from app/core/migrations/0003_notes_service.py rename to app/core/migrations/0004_notes_service.py index 83abbb737..b512e9925 100644 --- a/app/core/migrations/0003_notes_service.py +++ b/app/core/migrations/0004_notes_service.py @@ -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 @@ -7,7 +7,7 @@ class Migration(migrations.Migration): dependencies = [ - ('core', '0002_notes'), + ('core', '0003_alter_manufacturer_options_alter_notes_options'), ('itim', '0001_initial'), ] diff --git a/app/itim/migrations/0001_initial.py b/app/itim/migrations/0001_initial.py index 5ce0aac2d..d85e6bce4 100644 --- a/app/itim/migrations/0001_initial.py +++ b/app/itim/migrations/0001_initial.py @@ -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 @@ -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 = [ @@ -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', diff --git a/app/settings/migrations/0003_alter_externallink_options.py b/app/settings/migrations/0003_alter_externallink_options.py new file mode 100644 index 000000000..a4e0ff400 --- /dev/null +++ b/app/settings/migrations/0003_alter_externallink_options.py @@ -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'}, + ), + ]