/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\BOS_constraint.sql **/
 EXEC P_ALTERPK 'PK_INT_PUBLICHOLIDAY', 'T_INT_PUBLICHOLIDAY', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_INT_HOLIDAY_NUMBER') CREATE UNIQUE INDEX IDX_INT_HOLIDAY_NUMBER ON T_INT_PUBLICHOLIDAY ( FNUMBER );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_INT_HOLIDAY_TYPE') CREATE INDEX IDX_INT_HOLIDAY_TYPE ON T_INT_PUBLICHOLIDAY ( FTYPE );


 EXEC P_ALTERPK 'PK_INT_PUBLICHOLIDAY_L', 'T_INT_PUBLICHOLIDAY_L', 'FPKID', '1';

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


/**End E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\BOS_constraint.sql **/
