Skip to content

Commit 9a9b29b

Browse files
authored
Move scope to Text type
We have a lot of OAuth scopes these days, so this field size is getting bumped all the time. For simplicity, moving to Text instead.
1 parent 07b3a20 commit 9a9b29b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class Store(db.Model):
6464
id = db.Column(db.Integer, primary_key=True)
6565
store_hash = db.Column(db.String(16), nullable=False, unique=True)
6666
access_token = db.Column(db.String(128), nullable=False)
67-
scope = db.Column(db.String(256), nullable=False)
67+
scope = db.Column(db.Text(), nullable=False)
6868
admin_storeuser_id = relationship("StoreUser",
6969
primaryjoin="and_(StoreUser.store_id==Store.id, StoreUser.admin==True)")
7070
storeusers = relationship("StoreUser", backref="store")

0 commit comments

Comments
 (0)