/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\SRC_constraint.sql **/
 EXEC P_ALTERPK 'PK_SRC_DECISIONSUMSIGN_FJ1', 'T_SRC_DECISIONSUMSIGN_FJ1', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_SRC_DECISUMSIGN_FJ1_BID') CREATE INDEX IDX_SRC_DECISUMSIGN_FJ1_BID ON T_SRC_DECISIONSUMSIGN_FJ1 ( FBASEDATAID );


 EXEC P_ALTERPK 'PK_SRC_PAYMENTENTRY_FJ1', 'T_SRC_PAYMENTENTRY_FJ1', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_SRC_PAYMENTENTRY_FJ1_EID') CREATE INDEX IDX_SRC_PAYMENTENTRY_FJ1_EID ON T_SRC_PAYMENTENTRY_FJ1 ( FENTRYID );



/**End E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\SRC_constraint.sql **/
