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

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IX_LIC_ASSIGNLOG_ASSIGNUSERID') CREATE INDEX IX_LIC_ASSIGNLOG_ASSIGNUSERID ON T_LIC_ASSIGNLOG ( FASSIGNUSERID );


 EXEC P_ALTERPK 'PK_T_LIC_LEGALASSIGN', 'T_LIC_LEGALASSIGN', 'FID', '1';

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



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