diff options
author | Alan Rominger <arominge@redhat.com> | 2025-01-10 16:33:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-10 16:33:35 +0100 |
commit | 2d7bbc4ec83d2f6ea8ff396c9dc817925501e238 (patch) | |
tree | 7756ab12736bec5e46bb85d4654aff21d42cba29 /awx/main/migrations/0200_delete_token_cleanup_job.py | |
parent | Fix API documentation rendering (#15116) (#15726) (diff) | |
download | awx-2d7bbc4ec83d2f6ea8ff396c9dc817925501e238.tar.xz awx-2d7bbc4ec83d2f6ea8ff396c9dc817925501e238.zip |
AAP-37080 Delete the cleanup_tokens system job template (#15711)
Delete the cleanup_tokens system job template
Diffstat (limited to 'awx/main/migrations/0200_delete_token_cleanup_job.py')
-rw-r--r-- | awx/main/migrations/0200_delete_token_cleanup_job.py | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/awx/main/migrations/0200_delete_token_cleanup_job.py b/awx/main/migrations/0200_delete_token_cleanup_job.py new file mode 100644 index 0000000000..b9fe4c2401 --- /dev/null +++ b/awx/main/migrations/0200_delete_token_cleanup_job.py @@ -0,0 +1,44 @@ +# Generated by Django 4.2.16 on 2024-12-18 16:05 + +from django.db import migrations, models + +from awx.main.migrations._create_system_jobs import delete_clear_tokens_sjt + + +class Migration(migrations.Migration): + + dependencies = [ + ('main', '0199_alter_oauth2application_unique_together_and_more'), + ] + + operations = [ + migrations.RunPython(delete_clear_tokens_sjt, migrations.RunPython.noop), + migrations.AlterField( + model_name='systemjob', + name='job_type', + field=models.CharField( + blank=True, + choices=[ + ('cleanup_jobs', 'Remove jobs older than a certain number of days'), + ('cleanup_activitystream', 'Remove activity stream entries older than a certain number of days'), + ('cleanup_sessions', 'Removes expired browser sessions from the database'), + ], + default='', + max_length=32, + ), + ), + migrations.AlterField( + model_name='systemjobtemplate', + name='job_type', + field=models.CharField( + blank=True, + choices=[ + ('cleanup_jobs', 'Remove jobs older than a certain number of days'), + ('cleanup_activitystream', 'Remove activity stream entries older than a certain number of days'), + ('cleanup_sessions', 'Removes expired browser sessions from the database'), + ], + default='', + max_length=32, + ), + ), + ] |