Okay
  Public Ticket #1169884
Maximum string field length
Closed

Comments

  •  2
    Peter started the conversation

    How to store an encryption key in a wpDataTables field?

    I want to store a (long text value) value like: 

    wcBMA4kDXjH8+m6ZAQgAnWAOyneuiRM+kjGCqTKHkH+n6Mh8dF3xt3dSKTl4
    qkcUy88qxG5e2RHBJE1jdduUKteENlkXN80naYkhQBRWpJSymRFYvqPi2ZtR
    bfweJHdQuJEoET9nlU5+z0+hzEjv+EoJV5lcq4sp58iH8W920P+r2eIY0tly
    LYbqxgXWeCG7jT3zD6FDNudGR57GjHWLfKrNT6GUyt68T9Jz+qSx4OeArKSL
    HoLiCijgGGbvCFQUqj7hx2lEiIw+F59QFzdzKsX4W2jKIWiGRBnDPXnNR+g3
    V8yICZy6KR/Ug/fag5wfjPMr8G1X5Kzufq03X+oePXPoueWJaM4rLFP0kwf3
    f9JMATntHa7C13VEUlf8B8r+vrXfNa+fcTnaTEd29+rnc/UmXwdVzs8FUNmb
    JC+dG+a/9hbEEKZgr6UTEqM27QG9A0d6GnGpouYVuQUY9A==
    =zUjK

    However wpDataTables does not save this data.

    Thanks for your answer in advance.

    (Update: solved already: I have extended the field type to 'long text' in mySQL in PhpMyAdmin panel)

  •  1,708
    Miloš replied

    Hi Peter,
    Thank you for your purchase.

    Glad that you solved the issue.
    In case you need it I will write you a note about mysql text size

    "TINYTEXT is a string data type that can store up to to 255 characters.  TEXT is a string data type that can store up to 65,535 characters. TEXT is commonly used for storing blocks of text used for brief articles.  LONGTEXT is a string data type with a maximum length of 4,294,967,295 characters."

    So maybe this can be useful.

    Best regards.

    Kind Regards, 

    Miloš Jovanović
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables

  •  2
    Peter replied

    Thanks a lot for this answer Bogdan. I now have changed my data type to 'text' instead of 'longtext' as text lenght will be sufficient. 

    Regards,

    Peter