diff --git a/api/tacticalrmm/accounts/migrations/0037_role_can_run_server_scripts_role_can_use_webterm.py b/api/tacticalrmm/accounts/migrations/0037_role_can_run_server_scripts_role_can_use_webterm.py new file mode 100644 index 00000000..1296b10e --- /dev/null +++ b/api/tacticalrmm/accounts/migrations/0037_role_can_run_server_scripts_role_can_use_webterm.py @@ -0,0 +1,23 @@ +# Generated by Django 4.2.13 on 2024-06-11 20:02 + +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_run_server_scripts", + field=models.BooleanField(default=False), + ), + migrations.AddField( + model_name="role", + name="can_use_webterm", + field=models.BooleanField(default=False), + ), + ] 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 new file mode 100644 index 00000000..a92c68aa --- /dev/null +++ b/api/tacticalrmm/alerts/migrations/0014_alerttemplate_action_rest_alerttemplate_action_type_and_more.py @@ -0,0 +1,55 @@ +# Generated by Django 4.2.13 on 2024-06-11 20:02 + +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + dependencies = [ + ("core", "0045_coresettings_enable_server_scripts_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_coresettings_enable_server_scripts_and_more.py b/api/tacticalrmm/core/migrations/0045_coresettings_enable_server_scripts_and_more.py new file mode 100644 index 00000000..d9242c93 --- /dev/null +++ b/api/tacticalrmm/core/migrations/0045_coresettings_enable_server_scripts_and_more.py @@ -0,0 +1,55 @@ +# Generated by Django 4.2.13 on 2024-06-11 20:02 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("core", "0044_remove_coresettings_mesh_disable_auto_login"), + ] + + 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), + ), + 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, + ), + ), + ]