redo migrations

This commit is contained in:
wh1te909 2024-06-12 06:02:10 +00:00
parent beb8b18e98
commit 07c8dad1c3
3 changed files with 133 additions and 0 deletions

View File

@ -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),
),
]

View File

@ -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,
),
),
]

View File

@ -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,
),
),
]