/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\SYS_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_BAS_OPERATION_L', 'T_BAS_OPERATION_L', 'FPKID', '0';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BAS_OPERATION_L_FID') CREATE UNIQUE  CLUSTERED INDEX IDX_BAS_OPERATION_L_FID ON T_BAS_OPERATION_L ( FID ,FLOCALEID );

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


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