Remove Django field deprecated_remaining_minutes and delete DB column remaining_minutes
Fix MPP-3448
This commit is contained in:
Родитель
d31e693d4f
Коммит
a74ed478dc
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче