 );
 CREATE UNIQUE INDEX DEVICE_ID_UNIQUE ON DM_POLICY_COMPLIANCE_STATUS (DEVICE_ID ASC);
 
-DROP TABLE IF EXISTS DM_POLICY_CHANGE_MGT;
-CREATE TABLE DM_POLICY_CHANGE_MGT (
+CREATE TABLE IF NOT EXISTS  DM_POLICY_CHANGE_MGT (
   ID BIGSERIAL NOT NULL PRIMARY KEY,
   POLICY_ID INTEGER NOT NULL,
   DEVICE_TYPE_ID INTEGER NOT NULL,
   TENANT_ID INTEGER NOT NULL
 );
 
-DROP TABLE IF EXISTS DM_POLICY_COMPLIANCE_FEATURES;
-CREATE TABLE DM_POLICY_COMPLIANCE_FEATURES (
+CREATE TABLE IF NOT EXISTS  DM_POLICY_COMPLIANCE_FEATURES (
   ID BIGSERIAL NOT NULL PRIMARY KEY,
   COMPLIANCE_STATUS_ID INTEGER NOT NULL,
   TENANT_ID INTEGER NOT NULL,

  OPERATION_CODE VARCHAR(1000) NOT NULL
);

DROP TABLE IF EXISTS DM_CONFIG_OPERATION;
CREATE TABLE DM_CONFIG_OPERATION (
  OPERATION_ID INTEGER NOT NULL,
  OPERATION_CONFIG BYTEA DEFAULT NULL,
  PRIMARY KEY (OPERATION_ID),

    DM_OPERATION (ID) ON DELETE NO ACTION ON UPDATE NO ACTION
);

CREATE TABLE IF NOT EXISTS  DM_PROFILE_OPERATION (
  OPERATION_ID INTEGER NOT NULL,
  ENABLED INTEGER NOT NULL DEFAULT 0,
  OPERATION_DETAILS BYTEA DEFAULT NULL,
