/**Begin D:\pdm\PDM_UPGRADE_1.1\PDM_UPGRADE\pdm1\SIM_constraint.sql **/
 EXEC P_ALTERPK 'PK_SIM_PREVIEW_DATA', 'T_SIM_PREVIEW_DATA', 'FID', '0';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_SIM_PREVIEW_DATA_BATCH') CREATE  CLUSTERED INDEX IDX_SIM_PREVIEW_DATA_BATCH ON T_SIM_PREVIEW_DATA ( FORIGINBILLSEQ );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_SIM_PREVIEW_DATA_EXPIRE') CREATE INDEX IDX_SIM_PREVIEW_DATA_EXPIRE ON T_SIM_PREVIEW_DATA ( FEXPIRETIME );



/**End D:\pdm\PDM_UPGRADE_1.1\PDM_UPGRADE\pdm1\SIM_constraint.sql **/
