Skip to content

Commit

Permalink
add missing old columns
Browse files Browse the repository at this point in the history
  • Loading branch information
tianj7 committed Sep 7, 2023
1 parent e4a1f43 commit 37b9a24
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions migrations/models/migration_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from sqlalchemy.schema import ForeignKey
from userdatamodel import Base
from userdatamodel.models import User
import time

# This needs to be in a different file
# Otherwise SqlAlchemy would import this multiple times and then complain about metadata conflict
Expand Down Expand Up @@ -38,9 +39,14 @@ class MigrationClient(Base, OAuth2ClientMixin):

expires_at = Column(Integer, nullable=False, default=0)

_redirect_uris = Column(Text)

_allowed_scopes = Column(Text, nullable=False, default="")

# Deprecated, keeping these around in case it is needed later
_default_scopes = Column(Text)
_scopes = ["compute", "storage", "user"]

redirect_uri = Column(Text)
token_endpoint_auth_method = Column(String(48), default="client_secret_basic")
grant_type = Column(Text, nullable=False, default="")
Expand Down

0 comments on commit 37b9a24

Please sign in to comment.