Skip to content

Commit

Permalink
Increase package name length constraint
Browse files Browse the repository at this point in the history
Because of longer list of `x86_64` architecture aliases, these package
publication fails with http 502 error code.

Applied on existing production database:
alter table build alter column path TYPE varchar(200);
  • Loading branch information
ymartin59 committed Jan 21, 2018
1 parent 911f604 commit 2af5e5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spkrepo/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ class Screenshot(db.Model):
# Columns
id = db.Column(db.Integer, primary_key=True)
package_id = db.Column(db.Integer, db.ForeignKey('package.id'), nullable=False)
path = db.Column(db.Unicode(100), nullable=False)
path = db.Column(db.Unicode(200), nullable=False)

# Relationhips
package = db.relationship('Package', back_populates='screenshots')
Expand Down

0 comments on commit 2af5e5f

Please sign in to comment.