If I have to add a new database column, and by consequence, a new attribute to an Entity, it gonna break the OCP principle?
The government changes the law and we need to persist a new attribute to the database. It's ok about modifying the entity?
Let's say we should persist data about cars and now the government wants us to store in our database another attribute about the car and it became a law to keep this new attribute. It's a main attribute of a car entity, not something like CarAcessory and is a primitive type like a string.
What should I do to keep the OCP?
Thanks