/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\BOS_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_LIC_APPGROUP', 'T_LIC_APPGROUP', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_T_LIC_APPGROUP_GROUP') CREATE INDEX IDX_T_LIC_APPGROUP_GROUP ON T_LIC_APPGROUP ( FGROUPID );


 EXEC P_ALTERPK 'PK_T_LIC_APPWHITELIST', 'T_LIC_APPWHITELIST', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IX_LIC_APPWHITELIST_APPID') CREATE INDEX IX_LIC_APPWHITELIST_APPID ON T_LIC_APPWHITELIST ( FBIZAPPID );



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