/**Begin E:\PDM_UPGRADE\PDM1\SYS_constraint.sql **/
 EXEC P_ALTERPK 'PK_CTS_TELEPHONE', 'T_CTS_TELEPHONE', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_CTS_TELEPHONE') CREATE INDEX IDX_CTS_TELEPHONE ON T_CTS_TELEPHONE ( FSTATUS );


 EXEC P_ALTERPK 'PK_CTS_TELEPHONEFORMAT', 'T_CTS_TELEPHONEFORMAT', 'FENTRYID', '1';

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


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