Skip to content

Commit

Permalink
Increase size of conf_* fields
Browse files Browse the repository at this point in the history
  • Loading branch information
Diaoul committed Sep 19, 2021
1 parent 011d8bd commit 899e5bd
Show file tree
Hide file tree
Showing 2 changed files with 82 additions and 4 deletions.
78 changes: 78 additions & 0 deletions migrations/versions/dc7687894ba7_.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
"""empty message
Revision ID: dc7687894ba7
Revises: d785f1fb2307
Create Date: 2021-09-19 22:47:15.128884
"""
revision = "dc7687894ba7"
down_revision = "d785f1fb2307"

import sqlalchemy as sa
from alembic import op


def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.alter_column(
"version",
"conf_dependencies",
existing_type=sa.VARCHAR(length=255),
type_=sa.UnicodeText(),
existing_nullable=True,
)
op.alter_column(
"version",
"conf_conflicts",
existing_type=sa.VARCHAR(length=255),
type_=sa.UnicodeText(),
existing_nullable=True,
)
op.alter_column(
"version",
"conf_privilege",
existing_type=sa.VARCHAR(length=255),
type_=sa.UnicodeText(),
existing_nullable=True,
)
op.alter_column(
"version",
"conf_resource",
existing_type=sa.VARCHAR(length=255),
type_=sa.UnicodeText(),
existing_nullable=True,
)
# ### end Alembic commands ###


def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.alter_column(
"version",
"conf_resource",
existing_type=sa.UnicodeText(),
type_=sa.VARCHAR(length=255),
existing_nullable=True,
)
op.alter_column(
"version",
"conf_privilege",
existing_type=sa.UnicodeText(),
type_=sa.VARCHAR(length=255),
existing_nullable=True,
)
op.alter_column(
"version",
"conf_conflicts",
existing_type=sa.UnicodeText(),
type_=sa.VARCHAR(length=255),
existing_nullable=True,
)
op.alter_column(
"version",
"conf_dependencies",
existing_type=sa.UnicodeText(),
type_=sa.VARCHAR(length=255),
existing_nullable=True,
)
# ### end Alembic commands ###
8 changes: 4 additions & 4 deletions spkrepo/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,11 +389,11 @@ class Version(db.Model):
maintainer = db.Column(db.Unicode(50))
maintainer_url = db.Column(db.Unicode(255))
dependencies = db.Column(db.Unicode(255))
conf_dependencies = db.Column(db.Unicode(255))
conf_dependencies = db.Column(db.UnicodeText)
conflicts = db.Column(db.Unicode(255))
conf_conflicts = db.Column(db.Unicode(255))
conf_privilege = db.Column(db.Unicode(255))
conf_resource = db.Column(db.Unicode(255))
conf_conflicts = db.Column(db.UnicodeText)
conf_privilege = db.Column(db.UnicodeText)
conf_resource = db.Column(db.UnicodeText)
install_wizard = db.Column(db.Boolean)
upgrade_wizard = db.Column(db.Boolean)
startable = db.Column(db.Boolean)
Expand Down

0 comments on commit 899e5bd

Please sign in to comment.