diff --git a/api/tacticalrmm/accounts/migrations/0037_role_can_manage_servertasks_role_can_run_servercli_and_more.py b/api/tacticalrmm/accounts/migrations/0037_role_can_manage_servertasks_role_can_run_servercli_and_more.py deleted file mode 100644 index ecaff6fc..00000000 --- a/api/tacticalrmm/accounts/migrations/0037_role_can_manage_servertasks_role_can_run_servercli_and_more.py +++ /dev/null @@ -1,33 +0,0 @@ -# Generated by Django 4.2.10 on 2024-04-02 16:17 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('accounts', '0036_remove_role_can_ping_agents'), - ] - - operations = [ - migrations.AddField( - model_name='role', - name='can_manage_servertasks', - field=models.BooleanField(default=False), - ), - migrations.AddField( - model_name='role', - name='can_run_servercli', - field=models.BooleanField(default=False), - ), - migrations.AddField( - model_name='role', - name='can_run_servertasks', - field=models.BooleanField(default=False), - ), - migrations.AddField( - model_name='role', - name='can_view_servertasks', - field=models.BooleanField(default=False), - ), - ] diff --git a/api/tacticalrmm/accounts/migrations/0038_rename_can_manage_servertasks_role_can_run_server_scripts_and_more.py b/api/tacticalrmm/accounts/migrations/0038_rename_can_manage_servertasks_role_can_run_server_scripts_and_more.py deleted file mode 100644 index 7cb290e5..00000000 --- a/api/tacticalrmm/accounts/migrations/0038_rename_can_manage_servertasks_role_can_run_server_scripts_and_more.py +++ /dev/null @@ -1,34 +0,0 @@ -# Generated by Django 4.2.13 on 2024-06-10 17:56 - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ( - "accounts", - "0037_role_can_manage_servertasks_role_can_run_servercli_and_more", - ), - ] - - operations = [ - migrations.RenameField( - model_name="role", - old_name="can_manage_servertasks", - new_name="can_run_server_scripts", - ), - migrations.RenameField( - model_name="role", - old_name="can_run_servercli", - new_name="can_use_webterm", - ), - migrations.RemoveField( - model_name="role", - name="can_run_servertasks", - ), - migrations.RemoveField( - model_name="role", - name="can_view_servertasks", - ), - ] diff --git a/api/tacticalrmm/alerts/migrations/0014_alerttemplate_action_rest_alerttemplate_action_type_and_more.py b/api/tacticalrmm/alerts/migrations/0014_alerttemplate_action_rest_alerttemplate_action_type_and_more.py deleted file mode 100644 index 1539ecfe..00000000 --- a/api/tacticalrmm/alerts/migrations/0014_alerttemplate_action_rest_alerttemplate_action_type_and_more.py +++ /dev/null @@ -1,35 +0,0 @@ -# Generated by Django 4.2.10 on 2024-04-02 16:17 - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('core', '0045_urlaction_action_type_urlaction_rest_body_and_more'), - ('alerts', '0013_alerttemplate_action_env_vars_and_more'), - ] - - operations = [ - migrations.AddField( - model_name='alerttemplate', - name='action_rest', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='url_action_alert_template', to='core.urlaction'), - ), - migrations.AddField( - model_name='alerttemplate', - name='action_type', - field=models.CharField(choices=[('script', 'Script'), ('server', 'Server'), ('rest', 'Rest')], default='script', max_length=10), - ), - migrations.AddField( - model_name='alerttemplate', - name='resolved_action_rest', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='resolved_url_action_alert_template', to='core.urlaction'), - ), - migrations.AddField( - model_name='alerttemplate', - name='resolved_action_type', - field=models.CharField(choices=[('script', 'Script'), ('server', 'Server'), ('rest', 'Rest')], default='script', max_length=10), - ), - ] diff --git a/api/tacticalrmm/core/migrations/0045_urlaction_action_type_urlaction_rest_body_and_more.py b/api/tacticalrmm/core/migrations/0045_urlaction_action_type_urlaction_rest_body_and_more.py deleted file mode 100644 index 2243bde6..00000000 --- a/api/tacticalrmm/core/migrations/0045_urlaction_action_type_urlaction_rest_body_and_more.py +++ /dev/null @@ -1,33 +0,0 @@ -# Generated by Django 4.2.10 on 2024-04-02 16:17 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('core', '0044_remove_coresettings_mesh_disable_auto_login'), - ] - - operations = [ - migrations.AddField( - model_name='urlaction', - name='action_type', - field=models.CharField(choices=[('web', 'Web'), ('rest', 'Rest')], default='web', max_length=10), - ), - migrations.AddField( - model_name='urlaction', - name='rest_body', - field=models.TextField(blank=True, default='', null=True), - ), - migrations.AddField( - model_name='urlaction', - name='rest_headers', - field=models.TextField(blank=True, default='', null=True), - ), - migrations.AddField( - model_name='urlaction', - name='rest_method', - field=models.CharField(choices=[('get', 'Get'), ('post', 'Post'), ('put', 'Put'), ('delete', 'Delete'), ('patch', 'Patch')], default='get', max_length=10), - ), - ] diff --git a/api/tacticalrmm/core/migrations/0046_coresettings_enable_server_scripts_and_more.py b/api/tacticalrmm/core/migrations/0046_coresettings_enable_server_scripts_and_more.py deleted file mode 100644 index 32478054..00000000 --- a/api/tacticalrmm/core/migrations/0046_coresettings_enable_server_scripts_and_more.py +++ /dev/null @@ -1,23 +0,0 @@ -# Generated by Django 4.2.11 on 2024-04-27 09:50 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ("core", "0045_urlaction_action_type_urlaction_rest_body_and_more"), - ] - - operations = [ - migrations.AddField( - model_name="coresettings", - name="enable_server_scripts", - field=models.BooleanField(default=True), - ), - migrations.AddField( - model_name="coresettings", - name="enable_server_webterminal", - field=models.BooleanField(default=True), - ), - ]