/**Begin D:\PDM_UPGRADE\PDM1\GL_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_AI_BOOKDATERECONDS', 'T_AI_BOOKDATERECONDS', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_AI_BOOKDATE_INDEX') CREATE UNIQUE INDEX IDX_AI_BOOKDATE_INDEX ON T_AI_BOOKDATERECONDS ( FBILLTYPE ,FSOURCEBILLID ,FINDEX );



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