Compare commits

..

1 Commits

Author SHA1 Message Date
2d49c70f0f
fix column type
All checks were successful
continuous-integration/drone/push Build is passing
2021-08-02 21:29:06 +02:00

View File

@ -1,8 +1,8 @@
"""Initial migration. """Initial migration.
Revision ID: 44b45a772abd Revision ID: 6269064f6b51
Revises: Revises:
Create Date: 2021-07-06 21:19:44.217722 Create Date: 2021-08-02 21:28:50.484098
""" """
from alembic import op from alembic import op
@ -10,7 +10,7 @@ import sqlalchemy as sa
# revision identifiers, used by Alembic. # revision identifiers, used by Alembic.
revision = '44b45a772abd' revision = '6269064f6b51'
down_revision = None down_revision = None
branch_labels = None branch_labels = None
depends_on = None depends_on = None
@ -71,7 +71,7 @@ def upgrade():
) )
op.create_table('profile_language', op.create_table('profile_language',
sa.Column('profile_id', sa.Integer(), nullable=False), sa.Column('profile_id', sa.Integer(), nullable=False),
sa.Column('language_id', sa.Integer(), nullable=False), sa.Column('language_id', sa.String(length=2), nullable=False),
sa.Column('level', sa.SmallInteger(), nullable=False), sa.Column('level', sa.SmallInteger(), nullable=False),
sa.ForeignKeyConstraint(['language_id'], ['language.id'], ), sa.ForeignKeyConstraint(['language_id'], ['language.id'], ),
sa.ForeignKeyConstraint(['profile_id'], ['profile.id'], ), sa.ForeignKeyConstraint(['profile_id'], ['profile.id'], ),