Changeset 22986


Ignore:
Timestamp:
2013/07/20 16:29:42 (7 years ago)
Author:
adachi
Message:

#2179 booleanをsmallintへ変更

Location:
branches/version-2_13-dev
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_13-dev/data/class/plugin/SC_Plugin_Util.php

    r22978 r22986  
    155155        switch ($use_type) { 
    156156            case 1: 
    157                 $where .= ' AND use_flg = true'; 
     157                $where .= ' AND use_flg = 1'; 
    158158            break; 
    159159 
    160160            case 2: 
    161                 $where .= ' AND use_flg = false'; 
     161                $where .= ' AND use_flg = 0'; 
    162162            break; 
    163163 
     
    183183        switch ($use_type) { 
    184184            case 1: 
    185                 $where = 'enable = 1 AND use_flg = true'; 
     185                $where = 'enable = 1 AND use_flg = 1'; 
    186186            break; 
    187187 
    188188            case 2: 
    189                 $where = 'enable = 1 AND use_flg = false'; 
     189                $where = 'enable = 1 AND use_flg = 0'; 
    190190            break; 
    191191 
     
    235235     * 
    236236     * @param intger $plugin_hookpoint_id  フックポイントID 
    237      * @return bolean $use_flg:ture=ON、false=OFF 
    238      */ 
    239     function setPluginHookPointChangeUse($plugin_hookpoint_id, $use_flg = false) { 
     237     * @return bolean $use_flg:1=ON、0=OFF 
     238     */ 
     239    function setPluginHookPointChangeUse($plugin_hookpoint_id, $use_flg = 0) { 
    240240        $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    241241        $sqlval['use_flg'] = $use_flg; 
     
    257257        } else { 
    258258            $hookPoints = SC_Plugin_Util::getPluginHookPointList(1); 
    259             $where .= ' AND T1.use_flg = true'; 
     259            $where .= ' AND T1.use_flg = 1'; 
    260260        } 
    261261 
  • branches/version-2_13-dev/html/install/sql/create_table_mysql.sql

    r22978 r22986  
    11811181    hook_point text NOT NULL, 
    11821182    callback text, 
    1183     use_flg booelan NOT NULL DEFAULT true, 
     1183    use_flg smallint NOT NULL DEFAULT 1, 
    11841184    create_date timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, 
    11851185    update_date timestamp NOT NULL, 
  • branches/version-2_13-dev/html/install/sql/create_table_pgsql.sql

    r22978 r22986  
    11811181    hook_point text NOT NULL, 
    11821182    callback text, 
    1183     use_flg booelan NOT NULL DEFAULT true, 
     1183    use_flg smallint NOT NULL DEFAULT 1, 
    11841184    create_date timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, 
    11851185    update_date timestamp NOT NULL, 
Note: See TracChangeset for help on using the changeset viewer.