add custom_domain.dkim_verified column
This commit is contained in:
parent
774b5b7212
commit
ed78e31b8b
|
@ -654,6 +654,9 @@ class CustomDomain(db.Model, ModelMixin):
|
|||
domain = db.Column(db.String(128), unique=True, nullable=False)
|
||||
|
||||
verified = db.Column(db.Boolean, nullable=False, default=False)
|
||||
dkim_verified = db.Column(
|
||||
db.Boolean, nullable=False, default=False, server_default="0"
|
||||
)
|
||||
|
||||
def nb_alias(self):
|
||||
return GenEmail.filter_by(custom_domain_id=self.id).count()
|
||||
|
|
|
@ -0,0 +1,29 @@
|
|||
"""empty message
|
||||
|
||||
Revision ID: 9e1b06b9df13
|
||||
Revises: 18e934d58f55
|
||||
Create Date: 2019-12-25 17:22:27.887481
|
||||
|
||||
"""
|
||||
import sqlalchemy_utils
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = '9e1b06b9df13'
|
||||
down_revision = '18e934d58f55'
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.add_column('custom_domain', sa.Column('dkim_verified', sa.Boolean(), server_default='0', nullable=False))
|
||||
# ### end Alembic commands ###
|
||||
|
||||
|
||||
def downgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.drop_column('custom_domain', 'dkim_verified')
|
||||
# ### end Alembic commands ###
|
Loading…
Reference in New Issue