mirror of
https://github.com/simple-login/app.git
synced 2024-09-20 15:05:59 +08:00
add Bounce.info column
This commit is contained in:
parent
7add04accc
commit
fcb94f0331
|
@ -2514,6 +2514,7 @@ class Bounce(Base, ModelMixin):
|
|||
|
||||
__tablename__ = "bounce"
|
||||
email = sa.Column(sa.String(256), nullable=False, index=True)
|
||||
info = sa.Column(sa.Text, nullable=True)
|
||||
|
||||
|
||||
class TransactionalEmail(Base, ModelMixin):
|
||||
|
|
29
migrations/versions/2021_101415_d750d578b068_.py
Normal file
29
migrations/versions/2021_101415_d750d578b068_.py
Normal file
|
@ -0,0 +1,29 @@
|
|||
"""empty message
|
||||
|
||||
Revision ID: d750d578b068
|
||||
Revises: 2fbcad5527d7
|
||||
Create Date: 2021-10-14 15:44:57.816738
|
||||
|
||||
"""
|
||||
import sqlalchemy_utils
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = 'd750d578b068'
|
||||
down_revision = '2fbcad5527d7'
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.add_column('bounce', sa.Column('info', sa.Text(), nullable=True))
|
||||
# ### end Alembic commands ###
|
||||
|
||||
|
||||
def downgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.drop_column('bounce', 'info')
|
||||
# ### end Alembic commands ###
|
Loading…
Reference in a new issue