What is the easiest way to update a mnesia schema?

For example, I saved {id, name}in mnesia and want to update to {id, name, age}, do I need to call transform_tableevery time I change the circuit?

+5
source share
1 answer

The easiest way is to delete the table and recreate it. If you need to save data in a table, mnesia:transform_tablethis is the way to go.

+1
source

All Articles