/**Begin D:\tools\PDM_UPGRADE\pdm1\SYS_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_SVC_ATTACHMENT', 'T_SVC_ATTACHMENT', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_SVC_ATTACHMENT_NUMBER') CREATE UNIQUE INDEX IDX_SVC_ATTACHMENT_NUMBER ON T_SVC_ATTACHMENT ( FNUMBER );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_SVC_ATTACHMENT_IDENTIFY') CREATE INDEX IDX_SVC_ATTACHMENT_IDENTIFY ON T_SVC_ATTACHMENT ( FIDENTIFY );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_SVC_ATTACHMENT_SOURCE') CREATE INDEX IDX_SVC_ATTACHMENT_SOURCE ON T_SVC_ATTACHMENT ( FSOURCE );



/**End D:\tools\PDM_UPGRADE\pdm1\SYS_constraint.sql **/
