Commit 29761e09 authored by Jacob Schatz's avatar Jacob Schatz Committed by Micaël Bergeron

Add in column change for character varying

parent 07190d8d
......@@ -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"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment