예제 #1
0
 public static function getDbVersion()
 {
     $version = Db::fetchOne("SELECT option_value FROM " . Common::prefixTable('option') . " WHERE option_name = ?", array('version_Chat_DB'));
     if (!$version) {
         $version = Db::tableExists(Common::prefixTable('chat')) === false ? 0 : 1;
     }
     return $version;
 }