diff --git a/ki/models.py b/ki/models.py index c7a89c1..687f4b8 100644 --- a/ki/models.py +++ b/ki/models.py @@ -176,7 +176,7 @@ class Language(db.Model): __tablename__ = "language" id = Column(String(2), primary_key=True) - name = Column(String(25), nullable=False) + name = Column(String(100), nullable=False) profiles = relationship("ProfileLanguage", back_populates="language") diff --git a/migrations/versions/6269064f6b51_initial_migration.py b/migrations/versions/07fb02e49575_initial_migration.py similarity index 96% rename from migrations/versions/6269064f6b51_initial_migration.py rename to migrations/versions/07fb02e49575_initial_migration.py index 012c145..61ad097 100644 --- a/migrations/versions/6269064f6b51_initial_migration.py +++ b/migrations/versions/07fb02e49575_initial_migration.py @@ -1,8 +1,8 @@ """Initial migration. -Revision ID: 6269064f6b51 +Revision ID: 07fb02e49575 Revises: -Create Date: 2021-08-02 21:28:50.484098 +Create Date: 2021-08-02 21:43:42.035286 """ from alembic import op @@ -10,7 +10,7 @@ import sqlalchemy as sa # revision identifiers, used by Alembic. -revision = '6269064f6b51' +revision = '07fb02e49575' down_revision = None branch_labels = None depends_on = None @@ -25,7 +25,7 @@ def upgrade(): ) op.create_table('language', sa.Column('id', sa.String(length=2), nullable=False), - sa.Column('name', sa.String(length=25), nullable=False), + sa.Column('name', sa.String(length=100), nullable=False), sa.PrimaryKeyConstraint('id') ) op.create_table('profile',