db: reduce size of fingerprint column for mysql compat.
- we can get into troubles by having long fingerprint under mysql because we do an index on this column.
This commit is contained in:
parent
169de44773
commit
339cab81cd
2 changed files with 2 additions and 2 deletions
|
|
@ -1158,7 +1158,7 @@ class UserSshKeys(Base, BaseModel):
|
|||
|
||||
ssh_key_id = Column('ssh_key_id', Integer(), nullable=False, unique=True, default=None, primary_key=True)
|
||||
ssh_key_data = Column('ssh_key_data', String(10240), nullable=False, unique=None, default=None)
|
||||
ssh_key_fingerprint = Column('ssh_key_fingerprint', String(1024), nullable=False, unique=None, default=None)
|
||||
ssh_key_fingerprint = Column('ssh_key_fingerprint', String(255), nullable=False, unique=None, default=None)
|
||||
|
||||
description = Column('description', UnicodeText().with_variant(UnicodeText(1024), 'mysql'))
|
||||
|
||||
|
|
|
|||
|
|
@ -1207,7 +1207,7 @@ class UserSshKeys(Base, BaseModel):
|
|||
|
||||
ssh_key_id = Column('ssh_key_id', Integer(), nullable=False, unique=True, default=None, primary_key=True)
|
||||
ssh_key_data = Column('ssh_key_data', String(10240), nullable=False, unique=None, default=None)
|
||||
ssh_key_fingerprint = Column('ssh_key_fingerprint', String(1024), nullable=False, unique=None, default=None)
|
||||
ssh_key_fingerprint = Column('ssh_key_fingerprint', String(255), nullable=False, unique=None, default=None)
|
||||
|
||||
description = Column('description', UnicodeText().with_variant(UnicodeText(1024), 'mysql'))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue