/**Begin D:\PDM_UPGRADE\PDM1\EB_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_EB_MULTIDIMMEMREL_D', 'T_EB_MULTIDIMMEMREL_D', 'FENTRYID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_EB_MULTIDIMMEMREL_D_P1') CREATE INDEX IDX_EB_MULTIDIMMEMREL_D_P1 ON T_EB_MULTIDIMMEMREL_D ( FID );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_EB_MULTIDIMMEMREL_D_P2') CREATE INDEX IDX_EB_MULTIDIMMEMREL_D_P2 ON T_EB_MULTIDIMMEMREL_D ( FSEQ );


 EXEC P_ALTERPK 'PK_T_EB_MULTIDIMMEMRELATION', 'T_EB_MULTIDIMMEMRELATION', 'FID', '1';

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


 EXEC P_ALTERPK 'PK_T_EB_MULTIDIMRELATION', 'T_EB_MULTIDIMRELATION', 'FID', '1';

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


 EXEC P_ALTERPK 'PK_EB_MULTIDIMRELATION_D', 'T_EB_MULTIDIMRELATION_D', 'FENTRYID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_EB_MULTIDIMRELATION_D_FID') CREATE INDEX IDX_EB_MULTIDIMRELATION_D_FID ON T_EB_MULTIDIMRELATION_D ( FID );


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