From 4bfd476e5a376fe621684cb148c748c298bcf53a Mon Sep 17 00:00:00 2001 From: Mara Karagianni Date: Thu, 9 Nov 2023 11:47:58 +0200 Subject: [PATCH] settings,contrib: rm background_task app and table --- adhocracy-plus/config/settings/base.py | 1 - .../0001_drop_background_task_table.py | 17 +++++++++++++++++ apps/contrib/migrations/__init__.py | 0 changelog/7638.md | 5 +++++ requirements/base.txt | 1 - 5 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 apps/contrib/migrations/0001_drop_background_task_table.py create mode 100644 apps/contrib/migrations/__init__.py create mode 100644 changelog/7638.md diff --git a/adhocracy-plus/config/settings/base.py b/adhocracy-plus/config/settings/base.py index 918427527..046a9ddc3 100644 --- a/adhocracy-plus/config/settings/base.py +++ b/adhocracy-plus/config/settings/base.py @@ -36,7 +36,6 @@ "easy_thumbnails", "ckeditor", "ckeditor_uploader", - "background_task", "parler", # Wagtail cms components "wagtail.contrib.forms", diff --git a/apps/contrib/migrations/0001_drop_background_task_table.py b/apps/contrib/migrations/0001_drop_background_task_table.py new file mode 100644 index 000000000..43cae5022 --- /dev/null +++ b/apps/contrib/migrations/0001_drop_background_task_table.py @@ -0,0 +1,17 @@ +# Generated by Django 3.2.20 on 2023-11-09 07:46 + +from django.db import migrations + + +class Migration(migrations.Migration): + dependencies = [] + + operations = [ + migrations.RunSQL( + sql=[ + "DROP TABLE IF EXISTS background_task", + "DROP TABLE IF EXISTS background_task_completedtask", + ], + reverse_sql=migrations.RunSQL.noop, + ) + ] diff --git a/apps/contrib/migrations/__init__.py b/apps/contrib/migrations/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/changelog/7638.md b/changelog/7638.md new file mode 100644 index 000000000..b4098c799 --- /dev/null +++ b/changelog/7638.md @@ -0,0 +1,5 @@ +### Removed + +- background_task_completedtask and background_task tables +- background_task app from the settings +- background_task app from the requirements diff --git a/requirements/base.txt b/requirements/base.txt index fe84e441e..6023faa5e 100644 --- a/requirements/base.txt +++ b/requirements/base.txt @@ -18,7 +18,6 @@ redis==5.0.0 Django==3.2.19 django-allauth==0.54.0 git+https://github.com/liqd/django-autoslug.git@liqd2212#egg=django-autoslug -django-background-tasks==1.2.5 django-ckeditor==6.5.1 django-filter==22.1 django-widget-tweaks==1.4.12