You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
I propose to have a single
alter
method indj.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 changesalter(self, data_loss_ok=False, preview_only=False)
-- executes the changesThe text was updated successfully, but these errors were encountered: