From 2cf71f2ec7d2d6133b9ad2346e5e3ccb1410a3a0 Mon Sep 17 00:00:00 2001 From: Cody Hiar Date: Wed, 3 Feb 2021 14:58:59 -0700 Subject: Initial working version of archiver --- alembic/versions/81ed3c3502f7_add_timestamp.py | 28 ++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 alembic/versions/81ed3c3502f7_add_timestamp.py (limited to 'alembic/versions') 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 ### -- cgit v1.2.3