Remove Django field deprecated_remaining_minutes and delete DB column remaining_minutes

Fix MPP-3448
This commit is contained in:
Se Yeon Kim 2023-09-21 11:19:49 -05:00
Родитель d31e693d4f
Коммит a74ed478dc
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 3F96D66EFEF597CC
2 изменённых файлов: 16 добавлений и 7 удалений

Просмотреть файл

@ -0,0 +1,16 @@
# Generated by Django 3.2.20 on 2023-09-21 16:16
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("phones", "0027_relaynumber_vendor"),
]
operations = [
migrations.RemoveField(
model_name="relaynumber",
name="deprecated_remaining_minutes",
),
]

Просмотреть файл

@ -233,13 +233,6 @@ class RelayNumber(models.Model):
remaining_seconds = models.IntegerField(
default=settings.MAX_MINUTES_PER_BILLING_CYCLE * 60
)
# keep remaining_minutes column until the next deploy
deprecated_remaining_minutes = models.IntegerField(
db_column="remaining_minutes",
null=True,
blank=True,
default=settings.MAX_MINUTES_PER_BILLING_CYCLE,
)
remaining_texts = models.IntegerField(default=settings.MAX_TEXTS_PER_BILLING_CYCLE)
calls_forwarded = models.IntegerField(default=0)
calls_blocked = models.IntegerField(default=0)