What's the simplest way to update mnesia schema?

邮差的信 提交于 2020-04-10 08:17:21

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!