Issue:
When user's keys are migrated they are always marked as invalid.
There is an error in 'valid' field migration. It relies on getBoolean
implementation that returns 'true' only in case when char value is '1'.
Current table definition specifies 'Y' and 'N' values hence it cannot be
evaluated to 'true'.
Solution:
Introduce mapping function that returns boolean value according to 'Y',
'N' values.
Change-Id: I08310f85f720b3c95ffb4317c6909fbad581d7b6
Signed-off-by: Jacek Centkowski <geminica.programs@gmail.com>