You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
68 lines
1.6 KiB
Python
68 lines
1.6 KiB
Python
"""Changed Datetimes to be UTC
|
|
|
|
Revision ID: 7eb9aabef1dc
|
|
Revises: 82595a1e5193
|
|
Create Date: 2018-05-07 13:59:32.923484
|
|
|
|
"""
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = '7eb9aabef1dc'
|
|
down_revision = '82595a1e5193'
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.alter_column(
|
|
table_name='cookies',
|
|
column_name='created_date',
|
|
type_=sa.DateTime(timezone=True)
|
|
)
|
|
op.alter_column(
|
|
table_name='cookies',
|
|
column_name='modified_date',
|
|
type_=sa.DateTime(timezone=True)
|
|
)
|
|
op.alter_column(
|
|
table_name='users',
|
|
column_name='created_date',
|
|
type_=sa.DateTime(timezone=True)
|
|
)
|
|
op.alter_column(
|
|
table_name='users',
|
|
column_name='modified_date',
|
|
type_=sa.DateTime(timezone=True)
|
|
)
|
|
op.alter_column(
|
|
table_name='orders',
|
|
column_name='created_date',
|
|
type_=sa.DateTime(timezone=True)
|
|
)
|
|
op.alter_column(
|
|
table_name='orders',
|
|
column_name='modified_date',
|
|
type_=sa.DateTime(timezone=True)
|
|
)
|
|
op.alter_column(
|
|
table_name='line_items',
|
|
column_name='created_date',
|
|
type_=sa.DateTime(timezone=True)
|
|
)
|
|
op.alter_column(
|
|
table_name='line_items',
|
|
column_name='modified_date',
|
|
type_=sa.DateTime(timezone=True)
|
|
)
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
def downgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
pass
|
|
# ### end Alembic commands ###
|