Skip to content

Commit

Permalink
redo migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
wh1te909 committed Jun 28, 2024
1 parent 92fdfdb commit 33f730a
Show file tree
Hide file tree
Showing 3 changed files with 143 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Generated by Django 4.2.13 on 2024-06-28 20:21

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),
),
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# Generated by Django 4.2.13 on 2024-06-28 20:21

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,
),
),
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# Generated by Django 4.2.13 on 2024-06-28 20:21

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=False),
),
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="post",
max_length=10,
),
),
migrations.AlterField(
model_name="urlaction",
name="desc",
field=models.TextField(blank=True, null=True),
),
migrations.AlterField(
model_name="urlaction",
name="name",
field=models.CharField(max_length=255),
),
]

0 comments on commit 33f730a

Please sign in to comment.