Removing white spaces from the policy management and making data time fileds long

revert-70aa11f8
Geeth Munasinghe 10 years ago
parent 3ee767f1b2
commit 78cc3b0070

@ -41,17 +41,14 @@ public class PolicyManagementServiceComponent {
protected void activate(ComponentContext componentContext) { protected void activate(ComponentContext componentContext) {
try { try {
PolicyConfigurationManager.getInstance().initConfig(); PolicyConfigurationManager.getInstance().initConfig();
PolicyManagementConfig config = PolicyConfigurationManager.getInstance().getDeviceManagementConfig(); PolicyManagementConfig config = PolicyConfigurationManager.getInstance().getDeviceManagementConfig();
DataSourceConfig dsConfig = config.getPolicyManagementRepository().getDataSourceConfig(); DataSourceConfig dsConfig = config.getPolicyManagementRepository().getDataSourceConfig();
PolicyManagementDAOFactory.init(dsConfig); PolicyManagementDAOFactory.init(dsConfig);
} catch (Throwable t) { } catch (Throwable t) {
String msg = "Error occurred while initializing the Policy management core.";
log.error(msg, t);
} }
} }

@ -10,8 +10,8 @@ CREATE TABLE IF NOT EXISTS DM_DEVICE
ID VARCHAR(20) NOT NULL, ID VARCHAR(20) NOT NULL,
DESCRIPTION TEXT NULL DEFAULT NULL, DESCRIPTION TEXT NULL DEFAULT NULL,
NAME VARCHAR(100) NULL DEFAULT NULL, NAME VARCHAR(100) NULL DEFAULT NULL,
DATE_OF_ENROLLMENT DATETIME NULL DEFAULT NULL, DATE_OF_ENROLLMENT BIGINT NULL DEFAULT NULL,
DATE_OF_LAST_UPDATE DATETIME NULL DEFAULT NULL, DATE_OF_LAST_UPDATE BIGINT NULL DEFAULT NULL,
OWNERSHIP VARCHAR(45) NULL DEFAULT NULL, OWNERSHIP VARCHAR(45) NULL DEFAULT NULL,
STATUS VARCHAR(15) NULL DEFAULT NULL, STATUS VARCHAR(15) NULL DEFAULT NULL,
DEVICE_TYPE_ID INT(11) NULL DEFAULT NULL, DEVICE_TYPE_ID INT(11) NULL DEFAULT NULL,

Loading…
Cancel
Save