API & Client: add timezone to user - #11
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
"""empty message
|
||||
"""add static map url to 'Activity' table
|
||||
|
||||
Revision ID: 5a42db64e872
|
||||
Revises: 92adde6ac0d0
|
||||
|
@ -1,4 +1,4 @@
|
||||
"""empty message
|
||||
"""add static map id to 'Activity' table
|
||||
|
||||
Revision ID: 9f8c9c37da44
|
||||
Revises: 5a42db64e872
|
||||
|
28
fittrackee_api/migrations/versions/e82e5e9447de_.py
Normal file
28
fittrackee_api/migrations/versions/e82e5e9447de_.py
Normal file
@ -0,0 +1,28 @@
|
||||
"""add 'timezone' to 'User' table
|
||||
|
||||
Revision ID: e82e5e9447de
|
||||
Revises: 9f8c9c37da44
|
||||
Create Date: 2018-06-08 16:01:52.684935
|
||||
|
||||
"""
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = 'e82e5e9447de'
|
||||
down_revision = '9f8c9c37da44'
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.add_column('users', sa.Column('timezone', sa.String(length=50), nullable=True))
|
||||
# ### end Alembic commands ###
|
||||
|
||||
|
||||
def downgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.drop_column('users', 'timezone')
|
||||
# ### end Alembic commands ###
|
Reference in New Issue
Block a user