remove provider_rates table

this was added five years ago but never used. if we want to bring back
variable rates per client we might as well get a fresh start since a lot
has changed since then.
This commit is contained in:
Leo Hemsted
2022-05-03 14:42:59 +01:00
parent 43206b1656
commit 51646af92e
7 changed files with 32 additions and 60 deletions

View File

@@ -43,7 +43,6 @@ from app.models import (
Permission,
ProviderDetails,
ProviderDetailsHistory,
ProviderRates,
Service,
ServiceEmailReplyTo,
ServiceGuestList,
@@ -954,7 +953,6 @@ def restore_provider_details(notify_db, notify_db_session):
yield
# also delete these as they depend on provider_details
ProviderRates.query.delete()
ProviderDetails.query.delete()
ProviderDetailsHistory.query.delete()
notify_db.session.commit()