There is a program that uses the database. The version of the database schema indicated 1. Now a new column has been added to the database in the table. The question is whether to raise the version of the database schema? And if necessary, then the users who download the program automatically change and a column appears in the table?
1 answer
First, it is necessary to raise the version of the database with each structural change. Secondly, users with the old version of the database will have the old structure and the upgrade to the new one needs to be implemented, this is called migration.
More details can be read for example here.
|