diff --git a/docs/changelog.rst b/docs/changelog.rst index 6c79ea51a..9059a5fe7 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -32,6 +32,7 @@ v4.5.0 - 2020-10-19 - ``Fixed``: Automatisch opnieuw verbinden bij MQTT-connectiefouten [`#1091 `_] - ``Fixed``: Change incorrect msgstr - by @gerard33 [`#1144 `_] - ``Fixed``: Add missing Telegram text parts to Admin: Notifications - by @gerard33 [`#1146 `_] +- ``Fixed``: Dropbox access token max lengte vergroten [`#1157 `_] v4.4.3 - 2020-09-28 diff --git a/dsmr_backup/migrations/0012_increase_dropbox_token_length.py b/dsmr_backup/migrations/0012_increase_dropbox_token_length.py new file mode 100644 index 000000000..0560058d0 --- /dev/null +++ b/dsmr_backup/migrations/0012_increase_dropbox_token_length.py @@ -0,0 +1,18 @@ +# Generated by Django 3.1.2 on 2020-10-19 15:20 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('dsmr_backup', '0011_remove_backupsettings_latest_backup'), + ] + + operations = [ + migrations.AlterField( + model_name='dropboxsettings', + name='access_token', + field=models.CharField(blank=True, default=None, max_length=255, null=True, verbose_name='Dropbox access token'), + ), + ] diff --git a/dsmr_backup/models/settings.py b/dsmr_backup/models/settings.py index 1948f2659..08cba1d4a 100644 --- a/dsmr_backup/models/settings.py +++ b/dsmr_backup/models/settings.py @@ -50,7 +50,7 @@ class Meta: class DropboxSettings(ModelUpdateMixin, SingletonModel): """ Dropbox backup upload settings. """ access_token = models.CharField( - max_length=128, + max_length=255, default=None, null=True, blank=True, diff --git a/dsmrreader/provisioning/downgrade/v4.5.sh b/dsmrreader/provisioning/downgrade/v4.5.sh index dbfc2a87b..b654fd2a9 100644 --- a/dsmrreader/provisioning/downgrade/v4.5.sh +++ b/dsmrreader/provisioning/downgrade/v4.5.sh @@ -3,7 +3,7 @@ # Dump for DSMR-reader v4.5 ./manage.py migrate dsmr_api 0003_create_api_user ./manage.py migrate dsmr_backend 0015_backend_restart_required -./manage.py migrate dsmr_backup 0011_remove_backupsettings_latest_backup +./manage.py migrate dsmr_backup 0012_increase_dropbox_token_length ./manage.py migrate dsmr_consumption 0018_allow_inversed_fixed_costs ./manage.py migrate dsmr_datalogger 0029_default_retention_to_month ./manage.py migrate dsmr_frontend 0043_default_color_update_tariff_2