From 5785ee10729883da5ba2e52f03bb80cb8728684b Mon Sep 17 00:00:00 2001 From: ayyoob Date: Mon, 5 Jun 2017 00:13:52 +0530 Subject: [PATCH] intial commit for db migration from 3.0.0 - 3.1.0 --- .../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(+) create mode 100644 modules/distribution/src/core/resources/migration/3.0.0-to-3.1.0/dbscripts/h2.sql create mode 100644 modules/distribution/src/core/resources/migration/3.0.0-to-3.1.0/dbscripts/mysql.sql 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 new file mode 100644 index 00000000..d02ed079 --- /dev/null +++ b/modules/distribution/src/core/resources/migration/3.0.0-to-3.1.0/dbscripts/h2.sql @@ -0,0 +1,2 @@ +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; 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 new file mode 100644 index 00000000..d02ed079 --- /dev/null +++ b/modules/distribution/src/core/resources/migration/3.0.0-to-3.1.0/dbscripts/mysql.sql @@ -0,0 +1,2 @@ +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;