/**Begin D:\PDM_UPGRADE\PDM1\CAS_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_CAS_EXTEND_CONFIG', 'T_CAS_EXTEND_CONFIG', 'FID', '1';

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


 EXEC P_ALTERPK 'PK_T_CAS_EXTEND_CONFIG_L', 'T_CAS_EXTEND_CONFIG_L', 'FPKID', '1';

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



/**End D:\PDM_UPGRADE\PDM1\CAS_constraint.sql **/
