/**Begin C:\Users\rd_zhixiong_w\Downloads\PDM_UPGRADE\PDM1\TBO_constraint.sql **/
 EXEC P_ALTERPK 'PK_TBO_PL_PROVIS_PRODUCTS', 'T_TBO_PL_PROVIS_PRODUCTS', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_TBO_PL_PROVIS_PRODUCTS') CREATE INDEX IDX_TBO_PL_PROVIS_PRODUCTS ON T_TBO_PL_PROVIS_PRODUCTS ( FID );


 EXEC P_ALTERPK 'PK_TBO_PL_PROVISION', 'T_TBO_PL_PROVISION', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_TBO_PL_PROVISION') CREATE INDEX IDX_TBO_PL_PROVISION ON T_TBO_PL_PROVISION ( FBILLNO );


 EXEC P_ALTERPK 'PK_TBO_PL_PROVISION_ENTRY', 'T_TBO_PL_PROVISION_ENTRY', 'FENTRYID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_TBO_PL_PROVISION_ENTRY') CREATE INDEX IDX_TBO_PL_PROVISION_ENTRY ON T_TBO_PL_PROVISION_ENTRY ( FID );



/**End C:\Users\rd_zhixiong_w\Downloads\PDM_UPGRADE\PDM1\TBO_constraint.sql **/
