From 3b819cab1d2ed3605cd08353eeeac4ad529ff43a Mon Sep 17 00:00:00 2001 From: GPrathap Date: Tue, 17 May 2016 22:50:17 +0530 Subject: [PATCH] add mssql and oracle db scripts --- .../feature/src/main/resources/dbscripts/mssql.sql | 9 +++++++++ .../feature/src/main/resources/dbscripts/oracle.sql | 9 +++++++++ 2 files changed, 18 insertions(+) create mode 100644 modules/tools/cdmf-devicetype-archetype/src/main/resources/archetype-resources/feature/feature/src/main/resources/dbscripts/mssql.sql create mode 100644 modules/tools/cdmf-devicetype-archetype/src/main/resources/archetype-resources/feature/feature/src/main/resources/dbscripts/oracle.sql diff --git a/modules/tools/cdmf-devicetype-archetype/src/main/resources/archetype-resources/feature/feature/src/main/resources/dbscripts/mssql.sql b/modules/tools/cdmf-devicetype-archetype/src/main/resources/archetype-resources/feature/feature/src/main/resources/dbscripts/mssql.sql new file mode 100644 index 00000000..6b93c904 --- /dev/null +++ b/modules/tools/cdmf-devicetype-archetype/src/main/resources/archetype-resources/feature/feature/src/main/resources/dbscripts/mssql.sql @@ -0,0 +1,9 @@ + +-- ----------------------------------------------------- +-- Table `${deviceType}_DEVICE` +-- ----------------------------------------------------- +CREATE TABLE IF NOT EXISTS ${deviceType}_DEVICE ( + ${deviceType}_DEVICE_ID VARCHAR(45) NOT NULL , + DEVICE_NAME VARCHAR(100) NULL DEFAULT NULL, + PRIMARY KEY (${deviceType}_DEVICE_ID) ); + diff --git a/modules/tools/cdmf-devicetype-archetype/src/main/resources/archetype-resources/feature/feature/src/main/resources/dbscripts/oracle.sql b/modules/tools/cdmf-devicetype-archetype/src/main/resources/archetype-resources/feature/feature/src/main/resources/dbscripts/oracle.sql new file mode 100644 index 00000000..6b93c904 --- /dev/null +++ b/modules/tools/cdmf-devicetype-archetype/src/main/resources/archetype-resources/feature/feature/src/main/resources/dbscripts/oracle.sql @@ -0,0 +1,9 @@ + +-- ----------------------------------------------------- +-- Table `${deviceType}_DEVICE` +-- ----------------------------------------------------- +CREATE TABLE IF NOT EXISTS ${deviceType}_DEVICE ( + ${deviceType}_DEVICE_ID VARCHAR(45) NOT NULL , + DEVICE_NAME VARCHAR(100) NULL DEFAULT NULL, + PRIMARY KEY (${deviceType}_DEVICE_ID) ); +