/**Begin C:\PDM_UPGRADE\PDM1\SRM_constraint.sql **/
 EXEC P_ALTERPK 'PK_SRM_EVENTLIBRARY', 'T_SRM_EVENTLIBRARY', 'FID', '1';

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


 EXEC P_ALTERPK 'PK_SRM_EVENTLIBRARY_L', 'T_SRM_EVENTLIBRARY_L', 'FPKID', '1';

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



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