Merge pull request #9389 from jumpserver/pr@dev@perf_audits_migrations

perf: 优化audits的migrations
pull/9398/head
老广 2 years ago committed by GitHub
commit b4afdf7f72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save