Nebo15 / ecto_mnesia

Ecto adapter for Mnesia Erlang term database.
https://hex.pm/packages/ecto_mnesia
MIT License
243 stars 41 forks source link

Support for "rename table" #45

Open chvanikoff opened 7 years ago

chvanikoff commented 7 years ago

There should be a possibility to rename tables in migrations, like with Postgres or Mysql: rename table(:old), to: table(:new)

AndrewDryga commented 7 years ago

This is definitely should be supported, I wasn't able to find a native way for a table renaming, so some emulation should be done.

Qqwy commented 6 years ago

Yep, I believe the only thing Mnesia supports is: 1) create new table with same structure but new name 2) Copy data over from old table to new table 3) Destroy old table