Changeset 7680
- Timestamp:
- Jul 10, 2008, 6:30:17 PM (13 years ago)
- Location:
- OpenPNE/branches/stable-2.12.x/setup/sql/postgres74
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
OpenPNE/branches/stable-2.12.x/setup/sql/postgres74/update/update13-for2.12beta1-fix_bug_c_diary_comment.sql
r6729 r7680 10 10 11 11 INSERT INTO c_diary_comment_log (c_diary_comment_log_id, c_member_id, c_diary_id, r_datetime) 12 (SELECT NULL, c_member_id, c_diary_id, MAX(r_datetime) AS r_datetime12 (SELECT nextval('c_diary_comment_log_c_diary_comment_log_id_seq'), c_member_id, c_diary_id, MAX(r_datetime) AS r_datetime 13 13 FROM c_diary_comment 14 14 WHERE r_datetime <= current_timestamp + '-15 days' … … 17 17 18 18 INSERT INTO c_diary_comment_log (c_diary_comment_log_id, c_member_id, c_diary_id, r_datetime) 19 (SELECT NULL, tmp_c_diary_comment_log.c_member_id, tmp_c_diary_comment_log.c_diary_id,19 (SELECT nextval('c_diary_comment_log_c_diary_comment_log_id_seq'), tmp_c_diary_comment_log.c_member_id, tmp_c_diary_comment_log.c_diary_id, 20 20 tmp_c_diary_comment_log.r_datetime as r_datetime 21 21 FROM tmp_c_diary_comment_log -
OpenPNE/branches/stable-2.12.x/setup/sql/postgres74/upgrade/upgrade-2.10to2.12.sql
r7678 r7680 237 237 238 238 INSERT INTO c_diary_comment_log (c_diary_comment_log_id, c_member_id, c_diary_id, r_datetime) 239 (SELECT NULL, c_member_id, c_diary_id, MAX(r_datetime) AS r_datetime239 (SELECT nextval('c_diary_comment_log_c_diary_comment_log_id_seq'), c_member_id, c_diary_id, MAX(r_datetime) AS r_datetime 240 240 FROM c_diary_comment 241 241 GROUP BY c_member_id, c_diary_id … … 243 243 244 244 INSERT INTO c_diary_comment_log (c_diary_comment_log_id, c_member_id, c_diary_id, r_datetime) 245 (SELECT NULL, tmp_c_diary_comment_log.c_member_id, tmp_c_diary_comment_log.c_diary_id,245 (SELECT nextval('c_diary_comment_log_c_diary_comment_log_id_seq'), tmp_c_diary_comment_log.c_member_id, tmp_c_diary_comment_log.c_diary_id, 246 246 tmp_c_diary_comment_log.r_datetime as r_datetime 247 247 FROM tmp_c_diary_comment_log
Note: See TracChangeset
for help on using the changeset viewer.