Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
29761e09
Commit
29761e09
authored
6 years ago
by
Jacob Schatz
Committed by
Micaël Bergeron
6 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add in column change for character varying
parent
07190d8d
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
lib/pseudonymity/table.rb
lib/pseudonymity/table.rb
+5
-1
No files found.
lib/pseudonymity/table.rb
View file @
29761e09
...
...
@@ -80,7 +80,11 @@ module Pseudonymity
def
set_schema_column_types
(
table
,
type_results
)
type_results
.
each
do
|
type_result
|
@schema
[
table
][
type_result
[
"column_name"
]]
=
type_result
[
"data_type"
]
data_type
=
type_result
[
"data_type"
]
if
@config
[
"tables"
][
table
][
"pseudo"
].
include?
(
type_result
[
"column_name"
])
data_type
=
"character varying"
end
@schema
[
table
][
type_result
[
"column_name"
]]
=
data_type
end
# hard coded because all mapping keys in GL are id
@schema
[
table
][
"gl_mapping_key"
]
=
"id"
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment