/**Begin C:\Users\rd_xiang_qiu\Desktop\PDM规范\PDM_UPGRADE\pdm1\BOS_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_BAS_IMAGEREMIND', 'T_BAS_IMAGEREMIND', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'INDEX_BAS_IMAGEREMIND') CREATE INDEX INDEX_BAS_IMAGEREMIND ON T_BAS_IMAGEREMIND ( FENABLE );


 EXEC P_ALTERPK 'PK_T_BAS_IMAGEREMINDRECORD', 'T_BAS_IMAGEREMINDRECORD', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'INDEX_T_BAS_IMAGEREMINDRECORD') CREATE INDEX INDEX_T_BAS_IMAGEREMINDRECORD ON T_BAS_IMAGEREMINDRECORD ( FIMAGENUMBER );


 EXEC P_ALTERPK 'PK_T_BAS_IMAGEREMINDORG', 'T_BAS_IMAGEREMINDORG', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'INDEX_T_BAS_IMAGEREMINDORG') CREATE INDEX INDEX_T_BAS_IMAGEREMINDORG ON T_BAS_IMAGEREMINDORG ( FBASEDATAID );


 EXEC P_ALTERPK 'PK_T_BAS_IMAGEREMINDBILL', 'T_BAS_IMAGEREMINDBILL', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'INDEX_T_BAS_IMAGEREMINDBILL') CREATE INDEX INDEX_T_BAS_IMAGEREMINDBILL ON T_BAS_IMAGEREMINDBILL ( FBASEDATAID );


 EXEC P_ALTERPK 'PK_T_BAS_IMAGEREMIND_L', 'T_BAS_IMAGEREMIND_L', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'INDEX_T_BAS_IMAGEREMIND_L') CREATE INDEX INDEX_T_BAS_IMAGEREMIND_L ON T_BAS_IMAGEREMIND_L ( FLOCALEID );



/**End C:\Users\rd_xiang_qiu\Desktop\PDM规范\PDM_UPGRADE\pdm1\BOS_constraint.sql **/
