/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\BOS_constraint.sql **/

 EXEC P_ALTERPK 'PK_T_SIGNER_COMPENSATOR_L', 'T_SIGNER_COMPENSATOR_L', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_T_SIGNER_COMPENSATOR_L_FID') CREATE INDEX IDX_T_SIGNER_COMPENSATOR_L_FID ON T_SIGNER_COMPENSATOR_L ( FID ,FLOCALEID );


 EXEC P_ALTERPK 'PK_T_SIGNER_CONFIG_L', 'T_SIGNER_CONFIG_L', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_T_SIGNER_CONFIG_L_FID') CREATE INDEX IDX_T_SIGNER_CONFIG_L_FID ON T_SIGNER_CONFIG_L ( FID ,FLOCALEID );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_T_SIGNER_CONFIG_L_FNAME') CREATE INDEX IDX_T_SIGNER_CONFIG_L_FNAME ON T_SIGNER_CONFIG_L ( FNAME );


 EXEC P_ALTERPK 'PK_T_SIGNER_SEGMENT_L', 'T_SIGNER_SEGMENT_L', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_T_SIGNER_SEGMENT_L_FID') CREATE INDEX IDX_T_SIGNER_SEGMENT_L_FID ON T_SIGNER_SEGMENT_L ( FID ,FLOCALEID );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_T_SIGNER_SEGMENT_L_FNAME') CREATE INDEX IDX_T_SIGNER_SEGMENT_L_FNAME ON T_SIGNER_SEGMENT_L ( FNAME );
 
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_T_SIGNER_CR_L_FNAME') CREATE INDEX IDX_T_SIGNER_CR_L_FNAME ON T_SIGNER_COMPENSATOR_L ( FNAME );

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