/**Begin C:\PDM_UPGRADE\PDM1\SRM_constraint.sql **/

 EXEC P_ALTERPK 'PK_T_SRM_PORTRAIT_CONFIG', 'T_SRM_PORTRAIT_CONFIG', 'FID', '1';

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


 EXEC P_ALTERPK 'PK_T_SRM_PORTRAIT_CONFIG_L', 'T_SRM_PORTRAIT_CONFIG_L', 'FPKID', '1';

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



/**End C:\PDM_UPGRADE\PDM1\SRM_constraint.sql **/

