Show
Ignore:
Timestamp:
11/06/07 00:56:12 (3 years ago)
Author:
inureyes
Message:

#708

  • Eliminate mysql_ functions from comment model.
  • Delete auto_increment extra property from comment tables.
    • Is not compatible with other DBMS.
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/blog/checkup/index.php

    r4563 r4654  
    877877} 
    878878 
     879// From 1.6 
     880if (DBQuery::queryCell("DESC {$database['prefix']}Comments id", 'Extra') == 'auto_increment') { 
     881    $changed = true; 
     882    echo '<li>', _text('데이터베이스 호환성을 위하여 댓글 테이블의 자동 증가 설정을 제거합니다.'), ': '; 
     883    if (DBQuery::execute("ALTER TABLE {$database['prefix']}Comments CHANGE id id int(11) NOT NULL") 
     884        && DBQuery::execute("ALTER TABLE {$database['prefix']}CommentsNotifiedQueue CHANGE id id int(11) NOT NULL") 
     885        && DBQuery::execute("ALTER TABLE {$database['prefix']}CommentsNotifiedSiteInfo CHANGE id id int(11) NOT NULL")) 
     886        echo '<span style="color:#33CC33;">', _text('성공'), '</span></li>'; 
     887    else 
     888        echo '<span style="color:#FF0066;">', _text('실패'), '</span></li>'; 
     889} 
    879890 
    880891// Common parts.