/**Begin D:\PDM\PDM_UPGRADE\pdm1\BCM_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_BCM_EADATAPUSHSCHEMBASE', 'T_BCM_EADATAPUSHSCHEMBASE', 'FID', '1';

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

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BCM_EADATA_P_S_NUMBER') CREATE INDEX IDX_BCM_EADATA_P_S_NUMBER ON T_BCM_EADATAPUSHSCHEMBASE ( FNUMBER ,FNAME );


 EXEC P_ALTERPK 'PK_T_BCM_EADATAPUSHSCHEMDIM', 'T_BCM_EADATAPUSHSCHEMDIM', 'FENTRYID', '1';

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



/**End D:\PDM\PDM_UPGRADE\pdm1\BCM_constraint.sql **/
