From ea8b213501bc7e32cb9a798b922af3d687bd6abf Mon Sep 17 00:00:00 2001 From: wh1te909 Date: Mon, 3 Feb 2020 03:59:59 +0000 Subject: [PATCH] delete checks migrations --- .../checks/migrations/0001_initial.py | 108 ------------------ .../checks/migrations/0002_standardcheck.py | 34 ------ .../migrations/0003_auto_20190710_1934.py | 53 --------- .../migrations/0004_standardcheck_cpuload.py | 18 --- .../migrations/0005_auto_20190908_2205.py | 18 --- .../migrations/0006_auto_20190908_2208.py | 18 --- .../migrations/0007_auto_20190908_2208.py | 18 --- .../migrations/0008_auto_20191013_0410.py | 43 ------- .../migrations/0009_auto_20191013_0524.py | 28 ----- .../migrations/0010_pingcheck_check_type.py | 18 --- .../migrations/0011_auto_20191013_0729.py | 23 ---- .../migrations/0012_auto_20191013_2105.py | 28 ----- .../migrations/0013_cpuloadcheck_last_run.py | 18 --- .../migrations/0014_auto_20191013_2210.py | 28 ----- .../checks/migrations/0015_memcheckemail.py | 22 ---- .../migrations/0016_memcheck_check_type.py | 18 --- .../migrations/0017_auto_20191013_2312.py | 67 ----------- .../migrations/0018_delete_standardcheck.py | 16 --- 18 files changed, 576 deletions(-) delete mode 100644 api/tacticalrmm/checks/migrations/0001_initial.py delete mode 100644 api/tacticalrmm/checks/migrations/0002_standardcheck.py delete mode 100644 api/tacticalrmm/checks/migrations/0003_auto_20190710_1934.py delete mode 100644 api/tacticalrmm/checks/migrations/0004_standardcheck_cpuload.py delete mode 100644 api/tacticalrmm/checks/migrations/0005_auto_20190908_2205.py delete mode 100644 api/tacticalrmm/checks/migrations/0006_auto_20190908_2208.py delete mode 100644 api/tacticalrmm/checks/migrations/0007_auto_20190908_2208.py delete mode 100644 api/tacticalrmm/checks/migrations/0008_auto_20191013_0410.py delete mode 100644 api/tacticalrmm/checks/migrations/0009_auto_20191013_0524.py delete mode 100644 api/tacticalrmm/checks/migrations/0010_pingcheck_check_type.py delete mode 100644 api/tacticalrmm/checks/migrations/0011_auto_20191013_0729.py delete mode 100644 api/tacticalrmm/checks/migrations/0012_auto_20191013_2105.py delete mode 100644 api/tacticalrmm/checks/migrations/0013_cpuloadcheck_last_run.py delete mode 100644 api/tacticalrmm/checks/migrations/0014_auto_20191013_2210.py delete mode 100644 api/tacticalrmm/checks/migrations/0015_memcheckemail.py delete mode 100644 api/tacticalrmm/checks/migrations/0016_memcheck_check_type.py delete mode 100644 api/tacticalrmm/checks/migrations/0017_auto_20191013_2312.py delete mode 100644 api/tacticalrmm/checks/migrations/0018_delete_standardcheck.py diff --git a/api/tacticalrmm/checks/migrations/0001_initial.py b/api/tacticalrmm/checks/migrations/0001_initial.py deleted file mode 100644 index d2669ee7..00000000 --- a/api/tacticalrmm/checks/migrations/0001_initial.py +++ /dev/null @@ -1,108 +0,0 @@ -# Generated by Django 2.2.3 on 2019-07-07 23:32 - -import django.contrib.postgres.fields -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - initial = True - - dependencies = [ - ('agents', '0001_initial'), - ] - - operations = [ - migrations.CreateModel( - name='CpuLoadCheck', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('cpuload', models.PositiveIntegerField(default=85)), - ('status', models.CharField(default='N/A', max_length=30)), - ('more_info', models.CharField(default='N/A', max_length=255)), - ('email_alert', models.BooleanField(default=False)), - ('text_alert', models.BooleanField(default=False)), - ('agent', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='cpuloadchecks', to='agents.Agent')), - ], - ), - migrations.CreateModel( - name='DiskCheck', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('disk', models.CharField(max_length=2)), - ('threshold', models.PositiveIntegerField(default=25)), - ('status', models.CharField(default='N/A', max_length=30)), - ('email_alert', models.BooleanField(default=False)), - ('text_alert', models.BooleanField(default=False)), - ('more_info', models.TextField(null=True)), - ('agent', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='diskchecks', to='agents.Agent')), - ], - ), - migrations.CreateModel( - name='PingCheck', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('ip', models.CharField(max_length=255)), - ('name', models.CharField(max_length=255, null=True)), - ('failures', models.PositiveIntegerField(default=5)), - ('status', models.CharField(default='N/A', max_length=30)), - ('failure_count', models.IntegerField(default=0)), - ('email_alert', models.BooleanField(default=False)), - ('text_alert', models.BooleanField(default=False)), - ('more_info', models.TextField(null=True)), - ('agent', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='pingchecks', to='agents.Agent')), - ], - ), - migrations.CreateModel( - name='PingCheckEmail', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('sent', models.DateTimeField(auto_now=True)), - ('email', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='checks.PingCheck')), - ], - ), - migrations.CreateModel( - name='MemoryHistory', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('mem_history', django.contrib.postgres.fields.ArrayField(base_field=models.IntegerField(blank=True), default=list, null=True, size=None)), - ('agent', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='agents.Agent')), - ], - ), - migrations.CreateModel( - name='MemCheck', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('threshold', models.PositiveIntegerField(default=75)), - ('status', models.CharField(default='N/A', max_length=30)), - ('email_alert', models.BooleanField(default=False)), - ('text_alert', models.BooleanField(default=False)), - ('agent', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='memchecks', to='agents.Agent')), - ], - ), - migrations.CreateModel( - name='DiskCheckEmail', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('sent', models.DateTimeField(auto_now=True)), - ('email', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='checks.DiskCheck')), - ], - ), - migrations.CreateModel( - name='CpuLoadCheckEmail', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('sent', models.DateTimeField(auto_now=True)), - ('email', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='checks.CpuLoadCheck')), - ], - ), - migrations.CreateModel( - name='CpuHistory', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('cpu_history', django.contrib.postgres.fields.ArrayField(base_field=models.IntegerField(blank=True), default=list, null=True, size=None)), - ('agent', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='cpuhistory', to='agents.Agent')), - ], - ), - ] diff --git a/api/tacticalrmm/checks/migrations/0002_standardcheck.py b/api/tacticalrmm/checks/migrations/0002_standardcheck.py deleted file mode 100644 index d712bcb8..00000000 --- a/api/tacticalrmm/checks/migrations/0002_standardcheck.py +++ /dev/null @@ -1,34 +0,0 @@ -# Generated by Django 2.2.3 on 2019-07-10 19:31 - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('agents', '0001_initial'), - ('checks', '0001_initial'), - ] - - operations = [ - migrations.CreateModel( - name='StandardCheck', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('check_type', models.CharField(max_length=30)), - ('disk', models.CharField(max_length=2, null=True)), - ('disk_threshold', models.PositiveIntegerField(null=True)), - ('status', models.CharField(default='N/A', max_length=30)), - ('email_alert', models.BooleanField(default=False)), - ('text_alert', models.BooleanField(default=False)), - ('more_info', models.TextField(null=True)), - ('ping_ip', models.CharField(max_length=255, null=True)), - ('ping_name', models.CharField(max_length=255, null=True)), - ('ping_failures', models.PositiveIntegerField(null=True)), - ('ping_failure_count', models.IntegerField(null=True)), - ('mem_threshold', models.PositiveIntegerField(null=True)), - ('agent', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='standardcheck', to='agents.Agent')), - ], - ), - ] diff --git a/api/tacticalrmm/checks/migrations/0003_auto_20190710_1934.py b/api/tacticalrmm/checks/migrations/0003_auto_20190710_1934.py deleted file mode 100644 index 92e755ec..00000000 --- a/api/tacticalrmm/checks/migrations/0003_auto_20190710_1934.py +++ /dev/null @@ -1,53 +0,0 @@ -# Generated by Django 2.2.3 on 2019-07-10 19:34 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('checks', '0002_standardcheck'), - ] - - operations = [ - migrations.AlterField( - model_name='standardcheck', - name='disk', - field=models.CharField(blank=True, max_length=2, null=True), - ), - migrations.AlterField( - model_name='standardcheck', - name='disk_threshold', - field=models.PositiveIntegerField(blank=True, null=True), - ), - migrations.AlterField( - model_name='standardcheck', - name='mem_threshold', - field=models.PositiveIntegerField(blank=True, null=True), - ), - migrations.AlterField( - model_name='standardcheck', - name='more_info', - field=models.TextField(blank=True, null=True), - ), - migrations.AlterField( - model_name='standardcheck', - name='ping_failure_count', - field=models.IntegerField(blank=True, null=True), - ), - migrations.AlterField( - model_name='standardcheck', - name='ping_failures', - field=models.PositiveIntegerField(blank=True, null=True), - ), - migrations.AlterField( - model_name='standardcheck', - name='ping_ip', - field=models.CharField(blank=True, max_length=255, null=True), - ), - migrations.AlterField( - model_name='standardcheck', - name='ping_name', - field=models.CharField(blank=True, max_length=255, null=True), - ), - ] diff --git a/api/tacticalrmm/checks/migrations/0004_standardcheck_cpuload.py b/api/tacticalrmm/checks/migrations/0004_standardcheck_cpuload.py deleted file mode 100644 index 5369fb2d..00000000 --- a/api/tacticalrmm/checks/migrations/0004_standardcheck_cpuload.py +++ /dev/null @@ -1,18 +0,0 @@ -# Generated by Django 2.2.3 on 2019-07-10 19:37 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('checks', '0003_auto_20190710_1934'), - ] - - operations = [ - migrations.AddField( - model_name='standardcheck', - name='cpuload', - field=models.PositiveIntegerField(blank=True, null=True), - ), - ] diff --git a/api/tacticalrmm/checks/migrations/0005_auto_20190908_2205.py b/api/tacticalrmm/checks/migrations/0005_auto_20190908_2205.py deleted file mode 100644 index b8e159bd..00000000 --- a/api/tacticalrmm/checks/migrations/0005_auto_20190908_2205.py +++ /dev/null @@ -1,18 +0,0 @@ -# Generated by Django 2.2.4 on 2019-09-08 22:05 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('checks', '0004_standardcheck_cpuload'), - ] - - operations = [ - migrations.AlterField( - model_name='standardcheck', - name='check_type', - field=models.CharField(choices=[('disk', 'Disk Check'), ('ping', 'Ping Check'), ('cpuload', 'CPU Load Check'), ('memory', 'Memory Check')], max_length=30), - ), - ] diff --git a/api/tacticalrmm/checks/migrations/0006_auto_20190908_2208.py b/api/tacticalrmm/checks/migrations/0006_auto_20190908_2208.py deleted file mode 100644 index 9a7f4269..00000000 --- a/api/tacticalrmm/checks/migrations/0006_auto_20190908_2208.py +++ /dev/null @@ -1,18 +0,0 @@ -# Generated by Django 2.2.4 on 2019-09-08 22:08 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('checks', '0005_auto_20190908_2205'), - ] - - operations = [ - migrations.AlterField( - model_name='standardcheck', - name='status', - field=models.CharField(choices=[('passing', 'Passing'), ('failing', 'Failing'), ('pending', 'Pending')], default='passing', max_length=30), - ), - ] diff --git a/api/tacticalrmm/checks/migrations/0007_auto_20190908_2208.py b/api/tacticalrmm/checks/migrations/0007_auto_20190908_2208.py deleted file mode 100644 index a70dfb07..00000000 --- a/api/tacticalrmm/checks/migrations/0007_auto_20190908_2208.py +++ /dev/null @@ -1,18 +0,0 @@ -# Generated by Django 2.2.4 on 2019-09-08 22:08 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('checks', '0006_auto_20190908_2208'), - ] - - operations = [ - migrations.AlterField( - model_name='standardcheck', - name='status', - field=models.CharField(choices=[('passing', 'Passing'), ('failing', 'Failing'), ('pending', 'Pending')], default='pending', max_length=30), - ), - ] diff --git a/api/tacticalrmm/checks/migrations/0008_auto_20191013_0410.py b/api/tacticalrmm/checks/migrations/0008_auto_20191013_0410.py deleted file mode 100644 index 65f1070a..00000000 --- a/api/tacticalrmm/checks/migrations/0008_auto_20191013_0410.py +++ /dev/null @@ -1,43 +0,0 @@ -# Generated by Django 2.2.6 on 2019-10-13 04:10 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('checks', '0007_auto_20190908_2208'), - ] - - operations = [ - migrations.AddField( - model_name='diskcheck', - name='check_type', - field=models.CharField(choices=[('diskspace', 'Disk Space Check'), ('ping', 'Ping Check'), ('cpuload', 'CPU Load Check'), ('memory', 'Memory Check')], default='diskspace', max_length=30), - ), - migrations.AlterField( - model_name='diskcheck', - name='disk', - field=models.CharField(blank=True, max_length=2, null=True), - ), - migrations.AlterField( - model_name='diskcheck', - name='more_info', - field=models.TextField(blank=True, null=True), - ), - migrations.AlterField( - model_name='diskcheck', - name='status', - field=models.CharField(choices=[('passing', 'Passing'), ('failing', 'Failing'), ('pending', 'Pending')], default='pending', max_length=30), - ), - migrations.AlterField( - model_name='diskcheck', - name='threshold', - field=models.PositiveIntegerField(blank=True, null=True), - ), - migrations.AlterField( - model_name='standardcheck', - name='check_type', - field=models.CharField(choices=[('diskspace', 'Disk Space Check'), ('ping', 'Ping Check'), ('cpuload', 'CPU Load Check'), ('memory', 'Memory Check')], max_length=30), - ), - ] diff --git a/api/tacticalrmm/checks/migrations/0009_auto_20191013_0524.py b/api/tacticalrmm/checks/migrations/0009_auto_20191013_0524.py deleted file mode 100644 index a32b4205..00000000 --- a/api/tacticalrmm/checks/migrations/0009_auto_20191013_0524.py +++ /dev/null @@ -1,28 +0,0 @@ -# Generated by Django 2.2.6 on 2019-10-13 05:24 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('checks', '0008_auto_20191013_0410'), - ] - - operations = [ - migrations.AlterField( - model_name='pingcheck', - name='more_info', - field=models.TextField(blank=True, null=True), - ), - migrations.AlterField( - model_name='pingcheck', - name='name', - field=models.CharField(blank=True, max_length=255, null=True), - ), - migrations.AlterField( - model_name='pingcheck', - name='status', - field=models.CharField(choices=[('passing', 'Passing'), ('failing', 'Failing'), ('pending', 'Pending')], default='pending', max_length=30), - ), - ] diff --git a/api/tacticalrmm/checks/migrations/0010_pingcheck_check_type.py b/api/tacticalrmm/checks/migrations/0010_pingcheck_check_type.py deleted file mode 100644 index 54f91d3a..00000000 --- a/api/tacticalrmm/checks/migrations/0010_pingcheck_check_type.py +++ /dev/null @@ -1,18 +0,0 @@ -# Generated by Django 2.2.6 on 2019-10-13 05:35 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('checks', '0009_auto_20191013_0524'), - ] - - operations = [ - migrations.AddField( - model_name='pingcheck', - name='check_type', - field=models.CharField(choices=[('diskspace', 'Disk Space Check'), ('ping', 'Ping Check'), ('cpuload', 'CPU Load Check'), ('memory', 'Memory Check')], default='ping', max_length=30), - ), - ] diff --git a/api/tacticalrmm/checks/migrations/0011_auto_20191013_0729.py b/api/tacticalrmm/checks/migrations/0011_auto_20191013_0729.py deleted file mode 100644 index 13b472d5..00000000 --- a/api/tacticalrmm/checks/migrations/0011_auto_20191013_0729.py +++ /dev/null @@ -1,23 +0,0 @@ -# Generated by Django 2.2.6 on 2019-10-13 07:29 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('checks', '0010_pingcheck_check_type'), - ] - - operations = [ - migrations.AddField( - model_name='diskcheck', - name='last_run', - field=models.DateTimeField(auto_now=True), - ), - migrations.AddField( - model_name='pingcheck', - name='last_run', - field=models.DateTimeField(auto_now=True), - ), - ] diff --git a/api/tacticalrmm/checks/migrations/0012_auto_20191013_2105.py b/api/tacticalrmm/checks/migrations/0012_auto_20191013_2105.py deleted file mode 100644 index b1090437..00000000 --- a/api/tacticalrmm/checks/migrations/0012_auto_20191013_2105.py +++ /dev/null @@ -1,28 +0,0 @@ -# Generated by Django 2.2.6 on 2019-10-13 21:05 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('checks', '0011_auto_20191013_0729'), - ] - - operations = [ - migrations.AddField( - model_name='cpuloadcheck', - name='check_type', - field=models.CharField(choices=[('diskspace', 'Disk Space Check'), ('ping', 'Ping Check'), ('cpuload', 'CPU Load Check'), ('memory', 'Memory Check')], default='cpuload', max_length=30), - ), - migrations.AlterField( - model_name='cpuloadcheck', - name='more_info', - field=models.TextField(blank=True, null=True), - ), - migrations.AlterField( - model_name='cpuloadcheck', - name='status', - field=models.CharField(choices=[('passing', 'Passing'), ('failing', 'Failing'), ('pending', 'Pending')], default='pending', max_length=30), - ), - ] diff --git a/api/tacticalrmm/checks/migrations/0013_cpuloadcheck_last_run.py b/api/tacticalrmm/checks/migrations/0013_cpuloadcheck_last_run.py deleted file mode 100644 index 4b137dd7..00000000 --- a/api/tacticalrmm/checks/migrations/0013_cpuloadcheck_last_run.py +++ /dev/null @@ -1,18 +0,0 @@ -# Generated by Django 2.2.6 on 2019-10-13 21:29 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('checks', '0012_auto_20191013_2105'), - ] - - operations = [ - migrations.AddField( - model_name='cpuloadcheck', - name='last_run', - field=models.DateTimeField(auto_now=True), - ), - ] diff --git a/api/tacticalrmm/checks/migrations/0014_auto_20191013_2210.py b/api/tacticalrmm/checks/migrations/0014_auto_20191013_2210.py deleted file mode 100644 index bc17b2d0..00000000 --- a/api/tacticalrmm/checks/migrations/0014_auto_20191013_2210.py +++ /dev/null @@ -1,28 +0,0 @@ -# Generated by Django 2.2.6 on 2019-10-13 22:10 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('checks', '0013_cpuloadcheck_last_run'), - ] - - operations = [ - migrations.AddField( - model_name='memcheck', - name='last_run', - field=models.DateTimeField(auto_now=True), - ), - migrations.AddField( - model_name='memcheck', - name='more_info', - field=models.TextField(blank=True, null=True), - ), - migrations.AlterField( - model_name='memcheck', - name='status', - field=models.CharField(choices=[('passing', 'Passing'), ('failing', 'Failing'), ('pending', 'Pending')], default='pending', max_length=30), - ), - ] diff --git a/api/tacticalrmm/checks/migrations/0015_memcheckemail.py b/api/tacticalrmm/checks/migrations/0015_memcheckemail.py deleted file mode 100644 index 5bbcdff5..00000000 --- a/api/tacticalrmm/checks/migrations/0015_memcheckemail.py +++ /dev/null @@ -1,22 +0,0 @@ -# Generated by Django 2.2.6 on 2019-10-13 22:11 - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('checks', '0014_auto_20191013_2210'), - ] - - operations = [ - migrations.CreateModel( - name='MemCheckEmail', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('sent', models.DateTimeField(auto_now=True)), - ('email', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='checks.MemCheck')), - ], - ), - ] diff --git a/api/tacticalrmm/checks/migrations/0016_memcheck_check_type.py b/api/tacticalrmm/checks/migrations/0016_memcheck_check_type.py deleted file mode 100644 index 581fe8bd..00000000 --- a/api/tacticalrmm/checks/migrations/0016_memcheck_check_type.py +++ /dev/null @@ -1,18 +0,0 @@ -# Generated by Django 2.2.6 on 2019-10-13 22:16 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('checks', '0015_memcheckemail'), - ] - - operations = [ - migrations.AddField( - model_name='memcheck', - name='check_type', - field=models.CharField(choices=[('diskspace', 'Disk Space Check'), ('ping', 'Ping Check'), ('cpuload', 'CPU Load Check'), ('memory', 'Memory Check')], default='memory', max_length=30), - ), - ] diff --git a/api/tacticalrmm/checks/migrations/0017_auto_20191013_2312.py b/api/tacticalrmm/checks/migrations/0017_auto_20191013_2312.py deleted file mode 100644 index d3f217d5..00000000 --- a/api/tacticalrmm/checks/migrations/0017_auto_20191013_2312.py +++ /dev/null @@ -1,67 +0,0 @@ -# Generated by Django 2.2.6 on 2019-10-13 23:12 - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('agents', '0004_auto_20190922_1919'), - ('checks', '0016_memcheck_check_type'), - ] - - operations = [ - migrations.CreateModel( - name='WinServiceCheck', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('check_type', models.CharField(choices=[('diskspace', 'Disk Space Check'), ('ping', 'Ping Check'), ('cpuload', 'CPU Load Check'), ('memory', 'Memory Check'), ('winsvc', 'Win Service Check')], default='winsvc', max_length=30)), - ('svc_name', models.CharField(max_length=255)), - ('svc_display_name', models.CharField(max_length=255)), - ('pass_if_start_pending', models.BooleanField(default=False)), - ('restart_if_stopped', models.BooleanField(default=False)), - ('failures', models.PositiveIntegerField(default=1)), - ('failure_count', models.IntegerField(default=0)), - ('status', models.CharField(choices=[('passing', 'Passing'), ('failing', 'Failing'), ('pending', 'Pending')], default='pending', max_length=30)), - ('more_info', models.TextField(blank=True, null=True)), - ('email_alert', models.BooleanField(default=False)), - ('text_alert', models.BooleanField(default=False)), - ('last_run', models.DateTimeField(auto_now=True)), - ('agent', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='winservicechecks', to='agents.Agent')), - ], - ), - migrations.AlterField( - model_name='cpuloadcheck', - name='check_type', - field=models.CharField(choices=[('diskspace', 'Disk Space Check'), ('ping', 'Ping Check'), ('cpuload', 'CPU Load Check'), ('memory', 'Memory Check'), ('winsvc', 'Win Service Check')], default='cpuload', max_length=30), - ), - migrations.AlterField( - model_name='diskcheck', - name='check_type', - field=models.CharField(choices=[('diskspace', 'Disk Space Check'), ('ping', 'Ping Check'), ('cpuload', 'CPU Load Check'), ('memory', 'Memory Check'), ('winsvc', 'Win Service Check')], default='diskspace', max_length=30), - ), - migrations.AlterField( - model_name='memcheck', - name='check_type', - field=models.CharField(choices=[('diskspace', 'Disk Space Check'), ('ping', 'Ping Check'), ('cpuload', 'CPU Load Check'), ('memory', 'Memory Check'), ('winsvc', 'Win Service Check')], default='memory', max_length=30), - ), - migrations.AlterField( - model_name='pingcheck', - name='check_type', - field=models.CharField(choices=[('diskspace', 'Disk Space Check'), ('ping', 'Ping Check'), ('cpuload', 'CPU Load Check'), ('memory', 'Memory Check'), ('winsvc', 'Win Service Check')], default='ping', max_length=30), - ), - migrations.AlterField( - model_name='standardcheck', - name='check_type', - field=models.CharField(choices=[('diskspace', 'Disk Space Check'), ('ping', 'Ping Check'), ('cpuload', 'CPU Load Check'), ('memory', 'Memory Check'), ('winsvc', 'Win Service Check')], max_length=30), - ), - migrations.CreateModel( - name='WinServiceCheckEmail', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('sent', models.DateTimeField(auto_now=True)), - ('email', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='checks.WinServiceCheck')), - ], - ), - ] diff --git a/api/tacticalrmm/checks/migrations/0018_delete_standardcheck.py b/api/tacticalrmm/checks/migrations/0018_delete_standardcheck.py deleted file mode 100644 index 14b027a7..00000000 --- a/api/tacticalrmm/checks/migrations/0018_delete_standardcheck.py +++ /dev/null @@ -1,16 +0,0 @@ -# Generated by Django 2.2.6 on 2019-10-15 08:12 - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('checks', '0017_auto_20191013_2312'), - ] - - operations = [ - migrations.DeleteModel( - name='StandardCheck', - ), - ]