问题
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?
回答1:
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.
来源:https://stackoverflow.com/questions/15998244/whats-the-simplest-way-to-update-mnesia-schema