/**Begin D:\PDM_UPGRADE_1.3\PDM_UPGRADE_1.3\PDM_UPGRADE\PDM1\EB_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_EB_CENTRALSCHEME', 'T_EB_CENTRALSCHEME', 'FID', '1';

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


 EXEC P_ALTERPK 'PK_T_EB_CENTRALSCHEME_L', 'T_EB_CENTRALSCHEME_L', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_EB_CENTRALSCHEME_L_P1') CREATE INDEX IDX_EB_CENTRALSCHEME_L_P1 ON T_EB_CENTRALSCHEME_L ( FID ,FLOCALEID );


 EXEC P_ALTERPK 'PK_T_EB_CENTRALSCHEMECHECKER', 'T_EB_CENTRALSCHEMECHECKER', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'T_EB_CENTRALSCHEMECHECKER_P1') CREATE INDEX T_EB_CENTRALSCHEMECHECKER_P1 ON T_EB_CENTRALSCHEMECHECKER ( FBASEDATAID );


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