From d4ff9da16d133ae3cfec165049b2b8ac5e5c0513 Mon Sep 17 00:00:00 2001 From: ayyoob Date: Tue, 6 Jun 2017 11:01:16 +0530 Subject: [PATCH] updated migration script --- .../core/resources/migration/3.0.0-to-3.1.0/dbscripts/h2.sql | 2 ++ .../core/resources/migration/3.0.0-to-3.1.0/dbscripts/mysql.sql | 2 ++ 2 files changed, 4 insertions(+) diff --git a/modules/distribution/src/core/resources/migration/3.0.0-to-3.1.0/dbscripts/h2.sql b/modules/distribution/src/core/resources/migration/3.0.0-to-3.1.0/dbscripts/h2.sql index d02ed079..32d31c10 100644 --- a/modules/distribution/src/core/resources/migration/3.0.0-to-3.1.0/dbscripts/h2.sql +++ b/modules/distribution/src/core/resources/migration/3.0.0-to-3.1.0/dbscripts/h2.sql @@ -1,2 +1,4 @@ ALTER TABLE DM_DEVICE_TYPE ADD COLUMN LAST_UPDATED_TIMESTAMP TIMESTAMP DEFAULT CURRENT_TIMESTAMP; ALTER TABLE DM_DEVICE_TYPE ADD COLUMN DEVICE_TYPE_META VARCHAR(20000) DEFAULT NULL; +ALTER TABLE DM_ENROLMENT_OP_MAPPING ADD COLUMN PUSH_NOTIFICATION_STATUS VARCHAR(50) NULL; +UPDATE DM_ENROLMENT_OP_MAPPING SET PUSH_NOTIFICATION_STATUS = 'COMPLETED'; diff --git a/modules/distribution/src/core/resources/migration/3.0.0-to-3.1.0/dbscripts/mysql.sql b/modules/distribution/src/core/resources/migration/3.0.0-to-3.1.0/dbscripts/mysql.sql index d02ed079..f8857738 100644 --- a/modules/distribution/src/core/resources/migration/3.0.0-to-3.1.0/dbscripts/mysql.sql +++ b/modules/distribution/src/core/resources/migration/3.0.0-to-3.1.0/dbscripts/mysql.sql @@ -1,2 +1,4 @@ ALTER TABLE DM_DEVICE_TYPE ADD COLUMN LAST_UPDATED_TIMESTAMP TIMESTAMP DEFAULT CURRENT_TIMESTAMP; ALTER TABLE DM_DEVICE_TYPE ADD COLUMN DEVICE_TYPE_META VARCHAR(20000) DEFAULT NULL; +ALTER TABLE DM_ENROLMENT_OP_MAPPING ADD COLUMN PUSH_NOTIFICATION_STATUS VARCHAR(50) NULL; +UPDATE DM_ENROLMENT_OP_MAPPING SET PUSH_NOTIFICATION_STATUS = 'COMPLETED'; \ No newline at end of file