/**Begin D:\pdm\PDM_UPGRADE_1.1\PDM_UPGRADE\pdm1\BDM_constraint.sql **/
 EXEC P_ALTERPK 'PK_BDM_LQPT_SANDBOX', 'T_BDM_LQPT_SANDBOX', 'FID', '0';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BDM_LQPT_SANDBOX_BILLNO') CREATE  CLUSTERED INDEX IDX_BDM_LQPT_SANDBOX_BILLNO ON T_BDM_LQPT_SANDBOX ( FBILLNO );


 EXEC P_ALTERPK 'PK_BDM_LQPT_SANDBOX_ITEM', 'T_BDM_LQPT_SANDBOX_ITEM', 'FENTRYID', '0';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BDM_LQPT_SANDBOX_ITEM_FK') CREATE  CLUSTERED INDEX IDX_BDM_LQPT_SANDBOX_ITEM_FK ON T_BDM_LQPT_SANDBOX_ITEM ( FID );


 EXEC P_ALTERPK 'PK_BDM_LQPT_SANDBOX_REQ', 'T_BDM_LQPT_SANDBOX_REQ', 'FID', '0';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BDM_SANDBOX_REQ_ABILITYID') CREATE  CLUSTERED INDEX IDX_BDM_SANDBOX_REQ_ABILITYID ON T_BDM_LQPT_SANDBOX_REQ ( FABILITYID );



/**End D:\pdm\PDM_UPGRADE_1.1\PDM_UPGRADE\pdm1\BDM_constraint.sql **/
