Skip to content
Snippets Groups Projects

v1.1.0

Merged jvfpw18 requested to merge v1.1.0 into master
2 files
+ 30
30
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -532,13 +532,13 @@ class DatabaseTable(Table):
@@ -532,13 +532,13 @@ class DatabaseTable(Table):
def transfer_data(self, connection, transfer_list):
def transfer_data(self, connection, transfer_list):
'''
'''
Receives a list of columns to be transfered. Transfered columns are backed up,
Receives a list of columns to be transfered. Transfered columns are backed up,
removed, added with new parameters and then repopulated.
removed, added with new parameters and then repopulated.
transfer_list must be a list of dictionaries with the following fields:
transfer_list must be a list of dictionaries with the following fields:
name - the name of the original column;
name - the name of the original column;
new_name - name for the new column. If None is passed, original name is used;
new_name - name for the new column. If None is passed, original name is used;
new_type - type for the new column. If None is passed, original type is used.
new_type - type for the new column. If None is passed, original type is used.
'''
'''
if not transfer_list:
if not transfer_list:
return
return
pk_columns = list(self.primary_key.columns)
pk_columns = list(self.primary_key.columns)
Loading