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


 EXEC P_ALTERPK 'PK_FMM_USERBTNSET', 'T_FMM_USERBTNSET', 'FID', '1';
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_FMM_USERBTNSET_USERID') CREATE INDEX IDX_FMM_USERBTNSET_USERID ON T_FMM_USERBTNSET ( FUSERID );

 EXEC P_ALTERPK 'PK_FMM_USERBTNSET_L', 'T_FMM_USERBTNSET_L', 'FPKID', '1';
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_FMM_USERBTNSET_L_0') CREATE INDEX IDX_FMM_USERBTNSET_L_0 ON T_FMM_USERBTNSET_L ( FID ,FLOCALEID );

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