-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DB: Feld "value" in Type "text" ändern #5
Comments
@discordier Gehen hier bei Contao eventuell Daten verloren? |
Sollte keine Probleme machen, jedoch muss man dann einen upgrade step bauen, welcher bestehende Installationen dann auch aendert. Ansonsten bleiben die weiterhin auf varchar und nur neue Attribute kommen in den Genuss der laengeren column. Allgemein ist jedoch die Frage, ob bei einer solchen Laenge nicht das Attribut "longtext" dem use case eher entspricht, denn 255 Zeichen in einem Text input sind schon kaum lesbar, dann doch eher eine textarea und somit longtext, oder nicht? |
Ja wäre eine sinnvolle Optimierung. Wenn dann gleich richtig. |
bisher habe ich keine Infos erhalten, dass die 255 Zeichen nicht ausreichen würden - solange kein "dringender" Handlungsbedarf besteht, würde ich die Tabelle erstmal "schmal" halten... Edit: 255 Zeichen sind es ja nur bei "pure ACSII" bei UTF8 sind ja schon drei Byte je Zeichen |
welche Nachteile ergeben sich denn? |
TEXT and BLOB is stored off the table with the table just having a pointer to the location of the actual storage where VARCHAR is stored inline with the table. |
I think increasing the number of the varchar to e.g. 500 is enough. As @discordier mentioned here #5 (comment) the user has to choose the longtext field with the textarea when there is a lot of text. |
I'd bump this to 2.1 then unless someone is eager to implement it (including the database updater). |
Ich schlage vor, das Feld "value" von "varchar(255)" in "text" zu ändern.
The text was updated successfully, but these errors were encountered: