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

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BAS_PRINTTPLINFO_L') CREATE INDEX IDX_BAS_PRINTTPLINFO_L ON T_BAS_PRINTTPLINFO_L ( FID ,FLOCALEID );


 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BAS_PRINTTPLINFO_N') CREATE INDEX IDX_BAS_PRINTTPLINFO_N ON T_BAS_PRINTTPLINFO ( FNUMBER );


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