mirror of https://github.com/jumpserver/jumpserver
perf: Merge conflicting migration files
parent
3559647fee
commit
d9af381570
|
@ -113,4 +113,21 @@ class Migration(migrations.Migration):
|
||||||
migrations.DeleteModel(
|
migrations.DeleteModel(
|
||||||
name='AccountBackupExecution',
|
name='AccountBackupExecution',
|
||||||
),
|
),
|
||||||
|
migrations.RemoveField(
|
||||||
|
model_name='gatheredaccount',
|
||||||
|
name='authorized_keys',
|
||||||
|
),
|
||||||
|
migrations.RemoveField(
|
||||||
|
model_name='gatheredaccount',
|
||||||
|
name='groups',
|
||||||
|
),
|
||||||
|
migrations.RemoveField(
|
||||||
|
model_name='gatheredaccount',
|
||||||
|
name='sudoers',
|
||||||
|
),
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='gatheredaccount',
|
||||||
|
name='detail',
|
||||||
|
field=models.JSONField(blank=True, default=dict, verbose_name='Detail'),
|
||||||
|
),
|
||||||
]
|
]
|
||||||
|
|
|
@ -1,30 +0,0 @@
|
||||||
# Generated by Django 4.1.13 on 2024-12-03 07:01
|
|
||||||
|
|
||||||
from django.db import migrations, models
|
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
|
||||||
|
|
||||||
dependencies = [
|
|
||||||
('accounts', '0018_changesecretrecord_ignore_fail_and_more'),
|
|
||||||
]
|
|
||||||
|
|
||||||
operations = [
|
|
||||||
migrations.RemoveField(
|
|
||||||
model_name='gatheredaccount',
|
|
||||||
name='authorized_keys',
|
|
||||||
),
|
|
||||||
migrations.RemoveField(
|
|
||||||
model_name='gatheredaccount',
|
|
||||||
name='groups',
|
|
||||||
),
|
|
||||||
migrations.RemoveField(
|
|
||||||
model_name='gatheredaccount',
|
|
||||||
name='sudoers',
|
|
||||||
),
|
|
||||||
migrations.AddField(
|
|
||||||
model_name='gatheredaccount',
|
|
||||||
name='detail',
|
|
||||||
field=models.JSONField(blank=True, default=dict, verbose_name='Detail'),
|
|
||||||
),
|
|
||||||
]
|
|
|
@ -1,31 +0,0 @@
|
||||||
# Generated by Django 4.1.13 on 2024-12-02 11:30
|
|
||||||
|
|
||||||
from django.db import migrations, models
|
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
|
||||||
|
|
||||||
dependencies = [
|
|
||||||
("assets", "0010_alter_automationexecution_duration"),
|
|
||||||
]
|
|
||||||
|
|
||||||
operations = [
|
|
||||||
migrations.AlterField(
|
|
||||||
model_name="automationexecution",
|
|
||||||
name="status",
|
|
||||||
field=models.CharField(
|
|
||||||
choices=[
|
|
||||||
("ready", "Ready"),
|
|
||||||
("pending", "Pending"),
|
|
||||||
("running", "Running"),
|
|
||||||
("success", "Success"),
|
|
||||||
("failed", "Failed"),
|
|
||||||
("error", "Error"),
|
|
||||||
("canceled", "Canceled"),
|
|
||||||
],
|
|
||||||
default="pending",
|
|
||||||
max_length=16,
|
|
||||||
verbose_name="Status",
|
|
||||||
),
|
|
||||||
),
|
|
||||||
]
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Generated by Django 4.1.13 on 2024-12-04 07:16
|
# Generated by Django 4.1.13 on 2024-12-04 07:16
|
||||||
|
|
||||||
from django.db import migrations
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
def migrate_platform_sqlserver_automation(apps, schema_editor):
|
def migrate_platform_sqlserver_automation(apps, schema_editor):
|
||||||
|
@ -19,5 +19,23 @@ class Migration(migrations.Migration):
|
||||||
]
|
]
|
||||||
|
|
||||||
operations = [
|
operations = [
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name="automationexecution",
|
||||||
|
name="status",
|
||||||
|
field=models.CharField(
|
||||||
|
choices=[
|
||||||
|
("ready", "Ready"),
|
||||||
|
("pending", "Pending"),
|
||||||
|
("running", "Running"),
|
||||||
|
("success", "Success"),
|
||||||
|
("failed", "Failed"),
|
||||||
|
("error", "Error"),
|
||||||
|
("canceled", "Canceled"),
|
||||||
|
],
|
||||||
|
default="pending",
|
||||||
|
max_length=16,
|
||||||
|
verbose_name="Status",
|
||||||
|
),
|
||||||
|
),
|
||||||
migrations.RunPython(migrate_platform_sqlserver_automation)
|
migrations.RunPython(migrate_platform_sqlserver_automation)
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue