App Update with new Rows/Columns In Table
ImpactBlueStudios
Member Posts: 53
Just wanted to know how adding extra rows or columns to a table will effect the existing data in the table on an App Update?
Just say I had something like this:
Level | Score
--------------
And i proceed to add an extra column to that table on an app update, just say stars, will the data then look like this?
Level | Score | Stars
--------------------
Just say I had something like this:
Level | Score
--------------
1
| 1002
| 1303
| 404
| 205
| 50And i proceed to add an extra column to that table on an app update, just say stars, will the data then look like this?
Level | Score | Stars
--------------------
1
| 100
| 02
| 130
| 03
| 40
| 04
| 20
| 05
| 50
| 0
Comments
Readonly tables are tables which contain game and level configurations. These are tables which never get written to, and thus are overwritten on an App Update, and are great for tweaking game balance, item costs etc...
Writable tables store user data such as settings and scores. Once the Save Table call has been made they are not overwritten by App Updates. This is fine as you dont want your user data being overwritten.
The only structural changes you can make to a writable table is adding more rows, and this can be done using a "Table Upgrade" actor, which will take a look at the existing table of a previous version and make the necessary changes to update the table structure and its default values to the current version of the app.
Hope this helps those who are figuring out maintaining table data consistency between app updates.