/**Begin D:\DBA\1.4\PDM_UPGRADE\PDM1\BCM_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_BCM_TDP_DATACENTER', 'T_BCM_TDP_DATACENTER', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_BCM_TDP_DATACENTER' AND KSQL_INDNAME = 'IDX_BCM_TDP_DATACENTER_MODEL') CREATE INDEX IDX_BCM_TDP_DATACENTER_MODEL ON T_BCM_TDP_DATACENTER ( FMODELID );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_BCM_TDP_DATACENTER' AND KSQL_INDNAME = 'IDX_BCM_TDP_DATACENTER_NUMBER') CREATE UNIQUE INDEX IDX_BCM_TDP_DATACENTER_NUMBER ON T_BCM_TDP_DATACENTER ( FNUMBER );


 EXEC P_ALTERPK 'PK_T_BCM_TDP_DATACENTER_L', 'T_BCM_TDP_DATACENTER_L', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_BCM_TDP_DATACENTER_L' AND KSQL_INDNAME = 'IDX_BCM_TDP_DATACENTER_L') CREATE INDEX IDX_BCM_TDP_DATACENTER_L ON T_BCM_TDP_DATACENTER_L ( FID ,FLOCALEID );



/**End D:\DBA\1.4\PDM_UPGRADE\PDM1\BCM_constraint.sql **/
