mirror of
https://github.com/ansible/awx.git
synced 2026-03-03 17:51:06 -03:30
Merge pull request #2494 from ryanpetrello/drop-old-celery-tables
drop old celery/djcelery tables we no longer need
Reviewed-by: Ryan Petrello
https://github.com/ryanpetrello
This commit is contained in:
21
awx/main/migrations/0050_v340_drop_celery_tables.py
Normal file
21
awx/main/migrations/0050_v340_drop_celery_tables.py
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
|
from django.db import migrations
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('main', '0049_v330_validate_instance_capacity_adjustment'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.RunSQL([
|
||||||
|
("DROP TABLE IF EXISTS {} CASCADE;".format(table))
|
||||||
|
])
|
||||||
|
for table in ('celery_taskmeta', 'celery_tasksetmeta', 'djcelery_crontabschedule',
|
||||||
|
'djcelery_intervalschedule', 'djcelery_periodictask',
|
||||||
|
'djcelery_periodictasks', 'djcelery_taskstate', 'djcelery_workerstate',
|
||||||
|
'djkombu_message', 'djkombu_queue')
|
||||||
|
]
|
||||||
Reference in New Issue
Block a user