diff options
author | Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> | 2015-08-13 09:43:02 +0200 |
---|---|---|
committer | Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> | 2015-08-13 09:43:02 +0200 |
commit | 213cf68e7995859d149973d9e20aa5fdf0387f37 (patch) | |
tree | 5df3b6900f838a4adf1afac0e9c364555e423552 | |
parent | 61b168009c61cc97bf6c45dd2f3cdd807b0439f7 (diff) | |
download | pykolab-213cf68e7995859d149973d9e20aa5fdf0387f37.tar.gz |
Change column type for authentication cache to a Text field (from String) (#5143)
-rw-r--r-- | pykolab/auth/ldap/auth_cache.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/pykolab/auth/ldap/auth_cache.py b/pykolab/auth/ldap/auth_cache.py index 8c14592..c410fe6 100644 --- a/pykolab/auth/ldap/auth_cache.py +++ b/pykolab/auth/ldap/auth_cache.py @@ -26,6 +26,7 @@ from sqlalchemy import Integer from sqlalchemy import MetaData from sqlalchemy import String from sqlalchemy import Table +from sqlalchemy import Text from sqlalchemy import desc from sqlalchemy import create_engine @@ -70,9 +71,9 @@ class Entry(object): entry_table = Table( 'entries', metadata, Column('id', Integer, primary_key=True), - Column('domain', String(128), index=True, nullable=True), - Column('key', String(512), index=True, nullable=False), - Column('value', String(128), nullable=False), + Column('domain', String(256), index=True, nullable=True), + Column('key', Text, index=True, nullable=False), + Column('value', Text, nullable=False), Column('last_change', DateTime, nullable=False, default=datetime.datetime.now()) ) |