/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\LCS_constraint.sql **/
 EXEC P_ALTERPK 'PK_LCS_COSTCENTER', 'T_LCS_COSTCENTER', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_LCS_COSTCENTER' AND KSQL_INDNAME = 'IDX_LCS_COSTCENTER') CREATE INDEX IDX_LCS_COSTCENTER ON T_LCS_COSTCENTER ( FNUMBER );


 EXEC P_ALTERPK 'PK_LCS_COSTCENTER_L', 'T_LCS_COSTCENTER_L', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_LCS_COSTCENTER_L' AND KSQL_INDNAME = 'IDX_LCS_COSTCENTER_L') CREATE INDEX IDX_LCS_COSTCENTER_L ON T_LCS_COSTCENTER_L ( FID ,FLOCALEID );



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