/**Begin D:\PDM_UPGRADE\PDM1\EB_constraint.sql **/
EXEC p_DropIdx 'IDX_EB_ControlRuleMainModel', 'T_EB_CONTROLRULEMAIN';
EXEC p_DropIdx 'IDX_EB_ControlRuleMainSeq', 'T_EB_CONTROLRULEMAIN';
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_EB_CONTROLRULEMAINMODEL') CREATE INDEX IDX_EB_CONTROLRULEMAINMODEL ON T_EB_CONTROLRULEMAIN ( FMODELID ,FISDEFAULT ,FSEQ );

 EXEC P_ALTERPK 'PK_T_EB_DATAPERM', 'T_EB_DATAPERM', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_EB_DATAPERM_MODEL') CREATE INDEX IDX_EB_DATAPERM_MODEL ON T_EB_DATAPERM ( FMODEL );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_EB_DATAPERM_DIMENSION') CREATE INDEX IDX_EB_DATAPERM_DIMENSION ON T_EB_DATAPERM ( FDIMENSION );



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