diff options
Diffstat (limited to 'alembic/versions')
-rw-r--r-- | alembic/versions/81ed3c3502f7_add_timestamp.py | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/alembic/versions/81ed3c3502f7_add_timestamp.py b/alembic/versions/81ed3c3502f7_add_timestamp.py new file mode 100644 index 0000000..063b76a --- /dev/null +++ b/alembic/versions/81ed3c3502f7_add_timestamp.py @@ -0,0 +1,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 ### |