Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

adjusting characteg length with gorm  RSS feed

 
liliya woland
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everyone,
I'd like to ask if anyone tried adjusting character length on a db column. I have a situation where a string input could be as long as combined lengths of all strings in a static array, and all needs to fit into one field. I know this doesn't sound that good, but is it at all possible to increase, via gorm, the character length of the db column on the fly?
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, it is not. For good reason. Database structure modifications shouldn't occur that way. A DBA would have your head.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!