From 32f57a4eb4a67c3e64026d825672c94f446d5ac5 Mon Sep 17 00:00:00 2001 From: Konstantin Date: Tue, 15 Dec 2020 12:57:29 +0100 Subject: [PATCH] Migration bugfix from RPi --- migrations/versions/5413cb96c44d_statistics_refactoring.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/migrations/versions/5413cb96c44d_statistics_refactoring.py b/migrations/versions/5413cb96c44d_statistics_refactoring.py index ea06577..5d8ca7e 100644 --- a/migrations/versions/5413cb96c44d_statistics_refactoring.py +++ b/migrations/versions/5413cb96c44d_statistics_refactoring.py @@ -77,7 +77,6 @@ def upgrade(): ) op.create_index('idx_aggregate_coverage_statistics_uc', 'aggregate_coverage_statistics', ['date', 'location_mgrs_short', 'is_trustworthy'], unique=True) - op.drop_index('idx_relation_statistics_date_sender_id', table_name='relation_statistics') op.drop_index('idx_relation_statistics_uc', table_name='relation_statistics') op.drop_index('ix_relation_statistics_receiver_id', table_name='relation_statistics') op.drop_index('ix_relation_statistics_sender_id', table_name='relation_statistics') @@ -112,7 +111,6 @@ def downgrade(): op.create_index('ix_relation_statistics_sender_id', 'relation_statistics', ['sender_id'], unique=False) op.create_index('ix_relation_statistics_receiver_id', 'relation_statistics', ['receiver_id'], unique=False) op.create_index('idx_relation_statistics_uc', 'relation_statistics', ['date', 'sender_id', 'receiver_id', 'is_trustworthy'], unique=True) - op.create_index('idx_relation_statistics_date_sender_id', 'relation_statistics', ['date', 'sender_id'], unique=False) op.drop_index('idx_aggregate_coverage_statistics_uc', table_name='aggregate_coverage_statistics') op.drop_table('aggregate_coverage_statistics')