What's the simplest way to update mnesia schema?

erlang, mnesia

Solution

The simplest way is to delete the table and recreate it. If you need to keep the data in the table, `mnesia:transform_table` is the way to go.

Problem

For example, I saved `{id, name}` in mnesia and want to update to `{id, name, age}`, do I have to call `transform_table` every time I change schema?

Original source