/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\SYS_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_BAS_PLUGIN', 'T_BAS_PLUGIN', 'FID', '1';

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


 EXEC P_ALTERPK 'PK_T_BAS_PLUGIN_REF', 'T_BAS_PLUGIN_REF', 'FENTRYID', '1';

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


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