Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for "rename table" #45

Open
chvanikoff opened this issue Jul 31, 2017 · 2 comments
Open

Support for "rename table" #45

chvanikoff opened this issue Jul 31, 2017 · 2 comments

Comments

@chvanikoff
Copy link

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

@AndrewDryga
Copy link
Member

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
Copy link
Contributor

Qqwy commented Jun 12, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants