/**Begin D:\zhaohui_zeng\PDM_UPGRADE\pdm1\MSPLAN_constraint.sql **/
 EXEC P_ALTERPK 'PK_MSPLAN_METASQL_BUGLOG', 'T_MSPLAN_METASQL_BUGLOG', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_MSPLAN_METASQL_BUGLOG') CREATE INDEX IDX_MSPLAN_METASQL_BUGLOG ON T_MSPLAN_METASQL_BUGLOG ( FBUILDID );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_MSPLAN_METASQL_BL_GIT') CREATE INDEX IDX_MSPLAN_METASQL_BL_GIT ON T_MSPLAN_METASQL_BUGLOG ( FGITBRANCH );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_MSPLAN_METASQL_BL_APP') CREATE INDEX IDX_MSPLAN_METASQL_BL_APP ON T_MSPLAN_METASQL_BUGLOG ( FAPPID );

 EXEC P_ALTERPK 'PK_MSPLAN_METASQL_WHITELS', 'T_MSPLAN_METASQL_WHITELS', 'FID', '1';

 EXEC P_ALTERPK 'PK_MSPLAN_METASQL_PARAMSET', 'T_MSPLAN_METASQL_PARAMSET', 'FID', '1';

 EXEC P_ALTERPK 'PK_MSPLAN_METASQL_CALCSET', 'T_MSPLAN_METASQL_CALCSET', 'FID', '1';

/**End D:\zhaohui_zeng\PDM_UPGRADE\pdm1\MSPLAN_constraint.sql **/
