From 48325623905e84fb116bc77dd9c35b774505ae9c Mon Sep 17 00:00:00 2001 From: UsamaSadiq Date: Wed, 27 Sep 2023 16:21:04 +0500 Subject: [PATCH] feat: new migrations due to history package upgrade --- .../migrations/0061_auto_20230927_1119.py | 41 +++++++++++++++++++ license_manager/settings/base.py | 3 ++ 2 files changed, 44 insertions(+) create mode 100644 license_manager/apps/subscriptions/migrations/0061_auto_20230927_1119.py diff --git a/license_manager/apps/subscriptions/migrations/0061_auto_20230927_1119.py b/license_manager/apps/subscriptions/migrations/0061_auto_20230927_1119.py new file mode 100644 index 00000000..2ae61fc2 --- /dev/null +++ b/license_manager/apps/subscriptions/migrations/0061_auto_20230927_1119.py @@ -0,0 +1,41 @@ +# Generated by Django 3.2.21 on 2023-09-27 11:19 + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('subscriptions', '0060_historicalsubscriptionlicensesource'), + ] + + operations = [ + migrations.AlterModelOptions( + name='historicalcustomeragreement', + options={'get_latest_by': ('history_date', 'history_id'), 'ordering': ('-history_date', '-history_id'), 'verbose_name': 'historical Customer Agreement', 'verbose_name_plural': 'historical Customer Agreements'}, + ), + migrations.AlterModelOptions( + name='historicallicense', + options={'get_latest_by': ('history_date', 'history_id'), 'ordering': ('-history_date', '-history_id'), 'verbose_name': 'historical license', 'verbose_name_plural': 'historical licenses'}, + ), + migrations.AlterModelOptions( + name='historicalnotification', + options={'get_latest_by': ('history_date', 'history_id'), 'ordering': ('-history_date', '-history_id'), 'verbose_name': 'historical notification', 'verbose_name_plural': 'historical notifications'}, + ), + migrations.AlterModelOptions( + name='historicalproduct', + options={'get_latest_by': ('history_date', 'history_id'), 'ordering': ('-history_date', '-history_id'), 'verbose_name': 'historical product', 'verbose_name_plural': 'historical products'}, + ), + migrations.AlterModelOptions( + name='historicalsubscriptionlicensesource', + options={'get_latest_by': ('history_date', 'history_id'), 'ordering': ('-history_date', '-history_id'), 'verbose_name': 'historical subscription license source', 'verbose_name_plural': 'historical subscription license sources'}, + ), + migrations.AlterModelOptions( + name='historicalsubscriptionplan', + options={'get_latest_by': ('history_date', 'history_id'), 'ordering': ('-history_date', '-history_id'), 'verbose_name': 'historical Subscription Plan', 'verbose_name_plural': 'historical Subscription Plans'}, + ), + migrations.AlterModelOptions( + name='historicalsubscriptionplanrenewal', + options={'get_latest_by': ('history_date', 'history_id'), 'ordering': ('-history_date', '-history_id'), 'verbose_name': 'historical Subscription Plan Renewal', 'verbose_name_plural': 'historical Subscription Plan Renewals'}, + ), + ] diff --git a/license_manager/settings/base.py b/license_manager/settings/base.py index aa05d2f4..9a235bfb 100644 --- a/license_manager/settings/base.py +++ b/license_manager/settings/base.py @@ -435,3 +435,6 @@ # Django Admin Settings VALIDATE_FORM_EXTERNAL_FIELDS = True + +# disable indexing on history_date +SIMPLE_HISTORY_DATE_INDEX = False