/**Begin D:\PDM_UPGRADE\PDM1\BCM_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_BCM_DOCMODEL', 'T_BCM_DOCMODEL', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BCM_DOCMODEL_FPARENTID') CREATE INDEX IDX_BCM_DOCMODEL_FPARENTID ON T_BCM_DOCMODEL ( FPARENTID );

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

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BCM_DOCMODEL_CREATETIME') CREATE INDEX IDX_BCM_DOCMODEL_CREATETIME ON T_BCM_DOCMODEL ( FCREATETIME );



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