Added device type insert query to h2 database script

revert-70aa11f8
harshanL 10 years ago
parent 9ba2c0198c
commit 0ad9d1bd16

@ -60,7 +60,6 @@ public class DeviceManager implements DeviceManagerService {
Integer deviceTypeId = this.getDeviceDAO().getDeviceTypeIdByDeviceTypeName(device.getType());
deviceDto.setDeviceType(deviceTypeId);
this.getDeviceDAO().addDevice(deviceDto);
} catch (DeviceManagementDAOException e) {
throw new DeviceManagementException("Error occurred while enrolling the device '" +
device.getId() + "'", e);

@ -3,7 +3,7 @@ CREATE TABLE IF NOT EXISTS MBL_DEVICE
MOBILE_DEVICE_ID VARCHAR(45) NOT NULL,
REG_ID VARCHAR(45) NOT NULL,
IMEI VARCHAR(45) NOT NULL,
IMSI VARCHAR(45) NOT NULL,
IMSI VARCHAR(45),
OS_VERSION VARCHAR(45) NOT NULL,
DEVICE_MODEL VARCHAR(45) NOT NULL,
VENDOR VARCHAR(45) NOT NULL,

Loading…
Cancel
Save