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

This commit is contained in:
Geeth Munasinghe 2014-12-16 18:13:06 +05:30
parent 3ee767f1b2
commit 78cc3b0070
2 changed files with 4 additions and 7 deletions

View File

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

View File

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