API & Client: add user langage preferences in database

This commit is contained in:
Sam
2019-09-16 14:19:21 +02:00
parent 0443a4e3c9
commit 1f17b8fed4
17 changed files with 92 additions and 8 deletions

View File

@ -1,4 +1,4 @@
"""add weekm in 'User' table
"""add 'weekm' in 'User' table
Revision ID: 27425324c9e3
Revises: 096dd0b43beb

View File

@ -0,0 +1,28 @@
"""add 'language' to 'User' table
Revision ID: f69f1e413bde
Revises: 27425324c9e3
Create Date: 2019-09-16 13:18:39.198777
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'f69f1e413bde'
down_revision = '27425324c9e3'
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.add_column('users', sa.Column('language', sa.String(length=50), nullable=True))
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_column('users', 'language')
# ### end Alembic commands ###