aboutsummaryrefslogtreecommitdiff
path: root/alembic/versions/81ed3c3502f7_add_timestamp.py
blob: 063b76a3ddb734c8ecc25749ce6e381d4a372df4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
"""add timestamp

Revision ID: 81ed3c3502f7
Revises: a773ce65a262
Create Date: 2021-02-03 21:40:35.364113

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = '81ed3c3502f7'
down_revision = 'a773ce65a262'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('message', sa.Column('timestamp', sa.TIMESTAMP(), nullable=True))
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_column('message', 'timestamp')
    # ### end Alembic commands ###