/**Begin D:\PDM_UPGRADE\PDM1\EB_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_EB_APTEMPLATEFORMAT', 'T_EB_APTEMPLATEFORMAT', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_EB_APTEMPLATEFORMAT_P1') CREATE INDEX IDX_EB_APTEMPLATEFORMAT_P1 ON T_EB_APTEMPLATEFORMAT ( FMODELID );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_EB_APTEMPLATEFORMAT_P2') CREATE INDEX IDX_EB_APTEMPLATEFORMAT_P2 ON T_EB_APTEMPLATEFORMAT ( FAPPLYTEMPLATEID );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_EB_APTEMPLATEFORMAT_P3') CREATE INDEX IDX_EB_APTEMPLATEFORMAT_P3 ON T_EB_APTEMPLATEFORMAT ( FUSERID );



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