Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
HOTMapper
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Harbor Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
HOTMapper
HOTMapper
Merge requests
!13
v1.1.0
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
v1.1.0
v1.1.0
into
master
Overview
1
Commits
54
Pipelines
0
Changes
2
Merged
jvfpw18
requested to merge
v1.1.0
into
master
5 years ago
Overview
1
Commits
54
Pipelines
0
Changes
2
Expand
@hvehrenfried
0
0
Merge request reports
Viewing commit
1c3e3b71
Prev
Next
Show latest version
2 files
+
30
−
30
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
1c3e3b71
Update requirements
· 1c3e3b71
jvfpw18
authored
6 years ago
database/database_table.py
+
7
−
7
Options
@@ -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