Increase size of release URL

This commit is contained in:
rubenwardy 2018-05-23 19:24:10 +01:00
parent fb22408794
commit ba9879076d
No known key found for this signature in database
GPG Key ID: A1E29D52FF81513C
2 changed files with 35 additions and 1 deletions

@ -390,7 +390,7 @@ class PackageRelease(db.Model):
package_id = db.Column(db.Integer, db.ForeignKey("package.id")) package_id = db.Column(db.Integer, db.ForeignKey("package.id"))
title = db.Column(db.String(100), nullable=False) title = db.Column(db.String(100), nullable=False)
releaseDate = db.Column(db.DateTime, nullable=False) releaseDate = db.Column(db.DateTime, nullable=False)
url = db.Column(db.String(100), nullable=False) url = db.Column(db.String(200), nullable=False)
approved = db.Column(db.Boolean, nullable=False, default=False) approved = db.Column(db.Boolean, nullable=False, default=False)
task_id = db.Column(db.String(37), nullable=True) task_id = db.Column(db.String(37), nullable=True)

@ -0,0 +1,34 @@
"""empty message
Revision ID: 81e0eb07a3cd
Revises: f30031f0b928
Create Date: 2018-05-23 19:22:56.590653
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '81e0eb07a3cd'
down_revision = 'f30031f0b928'
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.alter_column('package_release', 'url',
existing_type=sa.VARCHAR(length=100),
type_=sa.String(length=200),
existing_nullable=False)
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.alter_column('package_release', 'url',
existing_type=sa.String(length=200),
type_=sa.VARCHAR(length=100),
existing_nullable=False)
# ### end Alembic commands ###