|
|
@ -29,7 +29,7 @@ def upgrade():
|
|
|
|
sa.Column('updated_at', sa.Date(), nullable=True),
|
|
|
|
sa.Column('updated_at', sa.Date(), nullable=True),
|
|
|
|
sa.Column('comment', sa.String(length=255), nullable=True),
|
|
|
|
sa.Column('comment', sa.String(length=255), nullable=True),
|
|
|
|
sa.Column('localpart', sa.String(length=80), nullable=False),
|
|
|
|
sa.Column('localpart', sa.String(length=80), nullable=False),
|
|
|
|
sa.Column('destination', sa.String(), nullable=False),
|
|
|
|
sa.Column('destination', sa.String(length=1023), nullable=False),
|
|
|
|
sa.Column('domain_name', sa.String(length=80), nullable=False),
|
|
|
|
sa.Column('domain_name', sa.String(length=80), nullable=False),
|
|
|
|
sa.Column('email', sa.String(length=255), nullable=False),
|
|
|
|
sa.Column('email', sa.String(length=255), nullable=False),
|
|
|
|
sa.ForeignKeyConstraint(['domain_name'], ['domain.name'], ),
|
|
|
|
sa.ForeignKeyConstraint(['domain_name'], ['domain.name'], ),
|
|
|
@ -64,7 +64,7 @@ def upgrade():
|
|
|
|
sa.Column('comment', sa.String(length=255), nullable=True),
|
|
|
|
sa.Column('comment', sa.String(length=255), nullable=True),
|
|
|
|
sa.Column('id', sa.Integer(), nullable=False),
|
|
|
|
sa.Column('id', sa.Integer(), nullable=False),
|
|
|
|
sa.Column('user_email', sa.String(length=255), nullable=False),
|
|
|
|
sa.Column('user_email', sa.String(length=255), nullable=False),
|
|
|
|
sa.Column('protocol', sa.Enum('imap', 'pop3'), nullable=False),
|
|
|
|
sa.Column('protocol', sa.Enum('imap', 'pop3', name='enum_protocol'), nullable=False),
|
|
|
|
sa.Column('host', sa.String(length=255), nullable=False),
|
|
|
|
sa.Column('host', sa.String(length=255), nullable=False),
|
|
|
|
sa.Column('port', sa.Integer(), nullable=False),
|
|
|
|
sa.Column('port', sa.Integer(), nullable=False),
|
|
|
|
sa.Column('tls', sa.Boolean(), nullable=False),
|
|
|
|
sa.Column('tls', sa.Boolean(), nullable=False),
|
|
|
|