|
|
|
@ -1,11 +1,13 @@
|
|
|
|
|
# Generated by Django 4.1.13 on 2024-05-09 03:16
|
|
|
|
|
|
|
|
|
|
import common.db.encoder
|
|
|
|
|
from django.db import migrations, models
|
|
|
|
|
import uuid
|
|
|
|
|
|
|
|
|
|
import private_storage.fields
|
|
|
|
|
import private_storage.storage.files
|
|
|
|
|
import simple_history.models
|
|
|
|
|
import uuid
|
|
|
|
|
from django.db import migrations, models
|
|
|
|
|
|
|
|
|
|
import common.db.encoder
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
@ -82,13 +84,13 @@ class Migration(migrations.Migration):
|
|
|
|
|
('instant', models.BooleanField(default=False)),
|
|
|
|
|
('args', models.CharField(blank=True, default='', max_length=8192, null=True, verbose_name='Args')),
|
|
|
|
|
('module', models.CharField(choices=[('shell', 'Shell'), ('win_shell', 'Powershell'), ('python', 'Python'), ('mysql', 'MySQL'), ('postgresql', 'PostgreSQL'), ('sqlserver', 'SQLServer'), ('raw', 'Raw'), ('huawei', 'HUAWEI')], default='shell', max_length=128, null=True, verbose_name='Module')),
|
|
|
|
|
('chdir', models.CharField(blank=True, default='', max_length=1024, null=True, verbose_name='Chdir')),
|
|
|
|
|
('chdir', models.CharField(blank=True, default='', max_length=1024, null=True, verbose_name='Run dir')),
|
|
|
|
|
('timeout', models.IntegerField(default=-1, verbose_name='Timeout (Seconds)')),
|
|
|
|
|
('type', models.CharField(choices=[('adhoc', 'Adhoc'), ('playbook', 'Playbook'), ('upload_file', 'Upload File')], default='adhoc', max_length=128, verbose_name='Type')),
|
|
|
|
|
('use_parameter_define', models.BooleanField(default=False, verbose_name='Use Parameter Define')),
|
|
|
|
|
('parameters_define', models.JSONField(default=dict, verbose_name='Parameters define')),
|
|
|
|
|
('runas', models.CharField(default='root', max_length=128, verbose_name='Runas')),
|
|
|
|
|
('runas_policy', models.CharField(choices=[('privileged_only', 'Privileged Only'), ('privileged_first', 'Privileged First'), ('skip', 'Skip')], default='skip', max_length=128, verbose_name='Runas policy')),
|
|
|
|
|
('runas', models.CharField(default='root', max_length=128, verbose_name='Run as')),
|
|
|
|
|
('runas_policy', models.CharField(choices=[('privileged_only', 'Privileged only'), ('privileged_first', 'Privileged first'), ('skip', 'Skip')], default='skip', max_length=128, verbose_name='Run as policy')),
|
|
|
|
|
('comment', models.CharField(blank=True, default='', max_length=1024, null=True, verbose_name='Comment')),
|
|
|
|
|
('version', models.IntegerField(default=0)),
|
|
|
|
|
('history_id', models.AutoField(primary_key=True, serialize=False)),
|
|
|
|
@ -120,13 +122,13 @@ class Migration(migrations.Migration):
|
|
|
|
|
('instant', models.BooleanField(default=False)),
|
|
|
|
|
('args', models.CharField(blank=True, default='', max_length=8192, null=True, verbose_name='Args')),
|
|
|
|
|
('module', models.CharField(choices=[('shell', 'Shell'), ('win_shell', 'Powershell'), ('python', 'Python'), ('mysql', 'MySQL'), ('postgresql', 'PostgreSQL'), ('sqlserver', 'SQLServer'), ('raw', 'Raw'), ('huawei', 'HUAWEI')], default='shell', max_length=128, null=True, verbose_name='Module')),
|
|
|
|
|
('chdir', models.CharField(blank=True, default='', max_length=1024, null=True, verbose_name='Chdir')),
|
|
|
|
|
('chdir', models.CharField(blank=True, default='', max_length=1024, null=True, verbose_name='Run dir')),
|
|
|
|
|
('timeout', models.IntegerField(default=-1, verbose_name='Timeout (Seconds)')),
|
|
|
|
|
('type', models.CharField(choices=[('adhoc', 'Adhoc'), ('playbook', 'Playbook'), ('upload_file', 'Upload File')], default='adhoc', max_length=128, verbose_name='Type')),
|
|
|
|
|
('use_parameter_define', models.BooleanField(default=False, verbose_name='Use Parameter Define')),
|
|
|
|
|
('parameters_define', models.JSONField(default=dict, verbose_name='Parameters define')),
|
|
|
|
|
('runas', models.CharField(default='root', max_length=128, verbose_name='Runas')),
|
|
|
|
|
('runas_policy', models.CharField(choices=[('privileged_only', 'Privileged Only'), ('privileged_first', 'Privileged First'), ('skip', 'Skip')], default='skip', max_length=128, verbose_name='Runas policy')),
|
|
|
|
|
('runas', models.CharField(default='root', max_length=128, verbose_name='Run as')),
|
|
|
|
|
('runas_policy', models.CharField(choices=[('privileged_only', 'Privileged only'), ('privileged_first', 'Privileged first'), ('skip', 'Skip')], default='skip', max_length=128, verbose_name='Run as policy')),
|
|
|
|
|
('comment', models.CharField(blank=True, default='', max_length=1024, null=True, verbose_name='Comment')),
|
|
|
|
|
('version', models.IntegerField(default=0)),
|
|
|
|
|
],
|
|
|
|
|