Ignore:
Timestamp:
2011/01/25 04:00:29 (15 years ago)
Author:
AMUAMU
Message:

#926 (高度なデータベース管理でチェックを押して登録を押してもindexが張られない) の解決。
#494 (プラグイン機能)の変更に伴うテンプレート呼び出し形式に対応していなかった問題があったことに対応。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_5-dev/data/class/SC_Query.php

    r19805 r20037  
    791791     * @param string $name インデックス名 
    792792     * @param array $definition フィールド名など 通常のフィールド指定時は、$definition=array('fields' => array('フィールド名' => array())); 
     793     *               MySQLのtext型フィールドを指定する場合は $definition['length'] = 'text_field(NNN)' が必要 
    793794     */ 
    794795    function createIndex($table, $name, $definition) { 
     796        $definition = $this->dbFactory->sfGetCreateIndexDefinition($table, $name, $definition); 
    795797        $objManager =& $this->conn->loadModule('Manager'); 
    796798        return $objManager->createIndex($table, $name, $definition); 
     
    807809        return $objManager->dropIndex($table, $name); 
    808810    } 
    809      
     811 
     812    /** 
     813     * テーブルの詳細情報を取得する。 
     814     * 
     815     * @param string $table テーブル名 
     816     * @return array テーブル情報の配列 
     817     */ 
     818    function getTableInfo($table) { 
     819        $objManager =& $this->conn->loadModule('Reverse'); 
     820        return $objManager->tableInfo($table, NULL); 
     821    } 
     822 
    810823    /** 
    811824     * 値を適切にクォートする. 
Note: See TracChangeset for help on using the changeset viewer.