Hi, team!
I'm having trouble updating my case classes once I already have data stores in the database. Is there a way to accomplish this?
For example, I have the following case class
case class Event(var date: String, delivered: Boolean, file: Option[String], name: String, imported: Boolean, interrupts: Boolean, isIdentified: Boolean)
And I already have a big amount of Events stored in the db. Now I want to add an attribute to the case class. If I do so, I obviously get an upickle.Invalid$Data: Key Missing error as the new attribute isn't present in the old data.
Any help?
Learn to code and update your dbs properly. Version your db object case classes, have a clear path to upgrade, and write a mapper. This isn't magic land. You are a special kind of special mate.
Hi, team! I'm having trouble updating my case classes once I already have data stores in the database. Is there a way to accomplish this? For example, I have the following case class
case class Event(var date: String, delivered: Boolean, file: Option[String], name: String, imported: Boolean, interrupts: Boolean, isIdentified: Boolean)
And I already have a big amount of Events stored in the db. Now I want to add an attribute to the case class. If I do so, I obviously get anupickle.Invalid$Data: Key Missing
error as the new attribute isn't present in the old data. Any help?