Commit 51c2b026 authored by Matija Obreza's avatar Matija Obreza
Browse files

Merge branch 'remove-index-on-title' into 'master'

Remove unique index on Table.title

See merge request genesys-pgr/amphibian!6
parents 7267d048 6680b722
......@@ -36,7 +36,6 @@ public class Table {
@Indexed(unique = true)
private String key;
@Indexed(unique = true)
private String title;
private String collection;
......
......@@ -32,6 +32,7 @@ import java.util.UUID;
import java.util.concurrent.atomic.AtomicInteger;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.math.NumberUtils;
import org.apache.poi.ss.usermodel.Cell;
import org.apache.poi.ss.usermodel.DateUtil;
import org.apache.poi.ss.usermodel.Row;
......@@ -279,7 +280,7 @@ public class MetadataServiceImpl implements MetadataService {
if (DateUtil.isCellDateFormatted(currentCell)) {
list.add(currentCell.getDateCellValue());
} else {
list.add(currentCell.getNumericCellValue());
list.add(NumberUtils.createNumber(currentCell.getStringCellValue()));
}
break;
case FORMULA:
......
Supports Markdown
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