/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\SYS_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_BAS_SCHEMESHAREUSERS', 'T_BAS_SCHEMESHAREUSERS', 'FPKID', '1';

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


 EXEC P_ALTERPK 'PK_T_BAS_SHAREFILTERSCHEME', 'T_BAS_SHAREFILTERSCHEME', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BAS_SHAREFILTERSCH_SCHID') CREATE INDEX IDX_BAS_SHAREFILTERSCH_SCHID ON T_BAS_SHAREFILTERSCHEME ( FSCHEMEID );



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