mirror of https://github.com/jumpserver/jumpserver
Merge pull request #9389 from jumpserver/pr@dev@perf_audits_migrations
perf: 优化audits的migrationspull/9398/head
commit
b4afdf7f72
|
@ -47,4 +47,9 @@ class Migration(migrations.Migration):
|
|||
migrations.RunPython(migrate_operate_log_after_before),
|
||||
migrations.RemoveField(model_name='operatelog', name='after', ),
|
||||
migrations.RemoveField(model_name='operatelog', name='before', ),
|
||||
migrations.AlterField(
|
||||
model_name='operatelog',
|
||||
name='resource_id',
|
||||
field=models.CharField(blank=True, db_index=True, default='', max_length=128, verbose_name='Resource'),
|
||||
),
|
||||
]
|
||||
|
|
|
@ -1,18 +0,0 @@
|
|||
# Generated by Django 3.2.16 on 2023-02-01 06:52
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('audits', '0020_auto_20230117_1004'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='operatelog',
|
||||
name='resource_id',
|
||||
field=models.CharField(blank=True, db_index=True, default='', max_length=128, verbose_name='Resource'),
|
||||
),
|
||||
]
|
Loading…
Reference in New Issue