Incorrect db column size
Closed this issue · 2 comments
yuanzhou commented
@marksilvis I noticed an error when testing the updated annotation against changes that @kvb2univpitt made in causal web.
I couldn't add text with more than 255 characters.
According to @kvb2univpitt, in the ccd-db v0.6.3 branch, it needs to specify the size of the string field as text, otherwise it uses varchar(255) in MySQL.
marksilvis commented
I set the database column size to 1000 characters for now. I am adding an error message to the Annotations API when a user tries to create an annotation with more than 1000 characters.
Additionally, I will update the text field in ccd-web to show the user how much of the maximum size they've used.
marksilvis commented
This issue is fixed. A new issue was created regarding the error message response.