aboutsummaryrefslogtreecommitdiff
path: root/alembic/versions
diff options
context:
space:
mode:
authorCody Hiar <cody@hiar.ca>2021-02-03 14:58:59 -0700
committerCody Hiar <cody@hiar.ca>2021-02-03 14:58:59 -0700
commit2cf71f2ec7d2d6133b9ad2346e5e3ccb1410a3a0 (patch)
treef51b52f4e3878f398d7fcff1f1c605604c4b446a /alembic/versions
parent2b007a5a500b635ddcfe4b9a512777f3d21fa6b6 (diff)
Initial working version of archiver
Diffstat (limited to 'alembic/versions')
-rw-r--r--alembic/versions/81ed3c3502f7_add_timestamp.py28
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 ###