--增加初始化表的主键及多语言表的主键和索引
 EXEC P_ALTERPK 'PK_PDM_RTVERSION_INIT_L', 'T_PDM_RTVERSION_INIT_L', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_PDM_RTVERSION_INIT_L_0') CREATE INDEX IDX_PDM_RTVERSION_INIT_L_0 ON T_PDM_RTVERSION_INIT_L ( FID, FLOCALEID );
 
 EXEC P_ALTERPK 'PK_PDM_RTVERSION_INIT', 'T_PDM_RTVERSION_INIT', 'FID', '1';

 --增加初始化标记表
 EXEC P_ALTERPK 'PK_PDM_ROUTEVERSIONINITTAG_L', 'T_PDM_ROUTEVERSIONINITTAG_L', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_PDM_ROUTEVERSIONINITTAG_L') CREATE INDEX IDX_PDM_ROUTEVERSIONINITTAG_L ON T_PDM_ROUTEVERSIONINITTAG_L ( FID, FLOCALEID );
 
 EXEC P_ALTERPK 'PK_PDM_ROUTEVERSIONINITTAG', 'T_PDM_ROUTEVERSIONINITTAG', 'FID', '1';
 