/**Begin E:\PDM_UPGRADE\PDM1\SYS_constraint.sql **/

 EXEC P_ALTERPK 'PK_CTS_NAME', 'T_CTS_NAME', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_CTS_NAME_COUNTRY') CREATE INDEX IDX_CTS_NAME_COUNTRY ON T_CTS_NAME ( FCOUNTRYID );

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

 EXEC P_ALTERPK 'PK_CTS_TITLE', 'T_CTS_TITLE', 'FID', '1';

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



/**End E:\PDM_UPGRADE\PDM1\SYS_constraint.sql **/
