Add Metric2.nb_total_bounced_last_24h column

This commit is contained in:
Son 2021-10-15 10:46:22 +02:00
parent 4d740a4dc0
commit 34564f6fa4
2 changed files with 31 additions and 0 deletions

View File

@ -2503,6 +2503,8 @@ class Metric2(Base, ModelMixin):
nb_block_last_24h = sa.Column(sa.Float, nullable=True)
nb_reply_last_24h = sa.Column(sa.Float, nullable=True)
nb_bounced_last_24h = sa.Column(sa.Float, nullable=True)
# includes bounces for both forwarding and transactional email
nb_total_bounced_last_24h = sa.Column(sa.Float, nullable=True)
nb_verified_custom_domain = sa.Column(sa.Float, nullable=True)

View File

@ -0,0 +1,29 @@
"""empty message
Revision ID: 2f1b3c759773
Revises: d750d578b068
Create Date: 2021-10-15 10:46:00.389295
"""
import sqlalchemy_utils
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '2f1b3c759773'
down_revision = 'd750d578b068'
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.add_column('metric2', sa.Column('nb_total_bounced_last_24h', sa.Float(), nullable=True))
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_column('metric2', 'nb_total_bounced_last_24h')
# ### end Alembic commands ###