Skip to content

Commit

Permalink
Last v2.x release #825
Browse files Browse the repository at this point in the history
  • Loading branch information
dennissiemensma committed Jan 14, 2020
1 parent 22f5420 commit 4779466
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
24 changes: 24 additions & 0 deletions dsmr_frontend/migrations/0028_v3_0_fix_upgrade_redirect.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Generated by Django 3.0.2 on 2020-01-14 17:18

from django.db import migrations


def migrate_forward(apps, schema_editor):
# Delete this notification, as the target URL no longer exists in v3.
Notification = apps.get_model('dsmr_frontend', 'Notification')
Notification.objects.filter(redirect_to='frontend:v3-upgrade-redirect').delete()


def migrate_backward(apps, schema_editor):
pass


class Migration(migrations.Migration):

operations = [
migrations.RunPython(migrate_forward, migrate_backward),
]

dependencies = [
('dsmr_frontend', '0027_v215_release'),
]
15 changes: 15 additions & 0 deletions dsmrreader/provisioning/downgrade/v3.0.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash

# Dump for DSMR-reader v3.0
./manage.py migrate dsmr_api 0003_create_api_user
./manage.py migrate dsmr_backend 0012_fix_email_from
./manage.py migrate dsmr_backup 0007_remove_backupsettings_compress
./manage.py migrate dsmr_consumption 0012_add_voltage_indexes
./manage.py migrate dsmr_datalogger 0017_log_telegrams
./manage.py migrate dsmr_frontend 0028_v3_0_fix_upgrade_redirect
./manage.py migrate dsmr_mindergas 0005_schedule_mindergas_export
./manage.py migrate dsmr_mqtt 0013_process_sleep
./manage.py migrate dsmr_notification 0007_support_for_telegram
./manage.py migrate dsmr_pvoutput 0002_pvoutput_latest_sync
./manage.py migrate dsmr_stats 0013_all_time_low
./manage.py migrate dsmr_weather 0006_schedule_weather_update

0 comments on commit 4779466

Please sign in to comment.