mirror of
https://github.com/Mailu/Mailu.git
synced 2025-06-04 23:27:34 +02:00
Add parameters to database field
This commit is contained in:
parent
93d5254b3f
commit
7f5bd98a2e
@ -18,7 +18,7 @@ class IdnaDomain(db.TypeDecorator):
|
|||||||
""" Stores a Unicode string in it's IDNA representation (ASCII only)
|
""" Stores a Unicode string in it's IDNA representation (ASCII only)
|
||||||
"""
|
"""
|
||||||
|
|
||||||
impl = db.String
|
impl = db.String(80)
|
||||||
|
|
||||||
|
|
||||||
def process_bind_param(self, value, dialect):
|
def process_bind_param(self, value, dialect):
|
||||||
@ -32,7 +32,7 @@ class IdnaEmail(db.TypeDecorator):
|
|||||||
""" Stores a Unicode string in it's IDNA representation (ASCII only)
|
""" Stores a Unicode string in it's IDNA representation (ASCII only)
|
||||||
"""
|
"""
|
||||||
|
|
||||||
impl = db.String
|
impl = db.String(255, collation="NOCASE")
|
||||||
|
|
||||||
|
|
||||||
def process_bind_param(self, value, dialect):
|
def process_bind_param(self, value, dialect):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user