begin timezone support

This commit is contained in:
2022-11-22 05:25:11 -05:00
parent fbb3317693
commit 5c26838c50
2 changed files with 29 additions and 0 deletions

View File

@@ -43,3 +43,4 @@ class User(UserMixin, db.Model):
email = db.Column(db.String(100), unique=True)
password = db.Column(db.String(100))
realName = db.Column(db.String(1000))
timezone = db.Column(db.String(20))

View File

@@ -0,0 +1,28 @@
"""empty message
Revision ID: d4e71a6e9479
Revises: bf65c9f77f9f
Create Date: 2022-11-22 05:24:06.596342
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'd4e71a6e9479'
down_revision = 'bf65c9f77f9f'
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.add_column('user', sa.Column('timezone', sa.String(length=20), nullable=True))
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_column('user', 'timezone')
# ### end Alembic commands ###