Fix timestamp field to use (UTC) timezone

This commit is contained in:
mike cullerton 2021-10-13 11:46:57 -04:00
parent dcb06f3753
commit f1dbda7f95
1 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,24 @@
"""modify email timestamp
Revision ID: ba6df7e560a1
Revises: 6d8ceb1c18cb
Create Date: 2021-10-13 10:54:23.894034
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'ba6df7e560a1'
down_revision = '6d8ceb1c18cb'
branch_labels = None
depends_on = None
def upgrade():
op.execute("alter table email alter column timestamp type timestamp with time zone")
def downgrade():
op.execute("alter table email alter column timestamp type timestamp without time zone")