Changeset 7086

Show
Ignore:
Timestamp:
11/26/08 01:59:51 (6 weeks ago)
Author:
daybreaker
Message:

refs #1131:

  • mysql의 timestamp가 요구하는 기본값을 index.xml의 storage 스키마에 기술할 수 없는 관계로 int 필드로 수정
Location:
trunk/plugins/GoogleMap
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/plugins/GoogleMap/index.php

    r7085 r7086  
    167167                        $lat = $response_csv[2]; 
    168168                        $lng = $response_csv[3]; 
    169                         POD::execute("INSERT INTO {$database['prefix']}GMapLocations VALUES (".getBlogId().", '".POD::escapeString($locative['location'])."', $lng, $lat, NOW())"); 
     169                        POD::execute("INSERT INTO {$database['prefix']}GMapLocations VALUES (".getBlogId().", '".POD::escapeString($locative['location'])."', $lng, $lat, ".time().")"); 
    170170                        $result = 0; 
    171171                        break; 
     
    183183            if ($result == 9) { 
    184184                // Not found. Don't try also later. 
    185                 POD::execute("INSERT INTO {$database['prefix']}GMapLocations VALUES (".getBlogId().", '".POD::escapeString($locative['location'])."', NULL, NULL, NOW())"); 
     185                POD::execute("INSERT INTO {$database['prefix']}GMapLocations VALUES (".getBlogId().", '".POD::escapeString($locative['location'])."', NULL, NULL, ".time().")"); 
    186186            } 
    187187        } else { 
  • trunk/plugins/GoogleMap/index.xml

    r7082 r7086  
    7171        <field><name>longitude</name><attribute>double</attribute><isnull>1</isnull></field> 
    7272        <field><name>latitude</name><attribute>double</attribute><isnull>1</isnull></field> 
    73         <field><name>updated</name><attribute>timestamp</attribute><isnull>0</isnull><default>0</default></field> 
     73        <field><name>updated</name><attribute>int</attribute><length>11</length><isnull>0</isnull><default>0</default></field> 
    7474      </fields> 
    7575      <key>address</key>