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

A method for altering the definitions of tables with data #110

Closed
dimitri-yatsenko opened this issue Jun 25, 2015 · 2 comments
Closed

A method for altering the definitions of tables with data #110

dimitri-yatsenko opened this issue Jun 25, 2015 · 2 comments

Comments

@dimitri-yatsenko
Copy link
Member

I propose to have a single alter method in dj.Relation. It will take the current definition and update the table definition.

This will require computing the difference between the current definition and the new definition and generating alter commands to update the definition.

Two methods:
preview_alter(self) -- shows the required changes
alter(self, data_loss_ok=False, preview_only=False) -- executes the changes

@fabiansinz
Copy link
Contributor

Agreement from my side.

dimitri-yatsenko added a commit to dimitri-yatsenko/datajoint-python that referenced this issue Jun 29, 2015
@dimitri-yatsenko dimitri-yatsenko added this to the Release v0.2 milestone Aug 18, 2015
@dimitri-yatsenko dimitri-yatsenko modified the milestones: Release v0.2, Release 0.6 Apr 17, 2017
@dimitri-yatsenko dimitri-yatsenko removed this from the Release 0.6 milestone Jul 12, 2017
@dimitri-yatsenko dimitri-yatsenko added this to the Release 0.9 milestone Jul 26, 2017
@dimitri-yatsenko dimitri-yatsenko changed the title a single alter method to work with the definition string in dj.Relation A method for altering the definitions of tables with data Jan 13, 2018
@dimitri-yatsenko
Copy link
Member Author

This may be helpful: https://github.com/djrobstep/migra

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

No branches or pull requests

2 participants