<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -23,7 +23,8 @@ create table pages (
   id integer primary key,
   title varchar(255) unique,
   body text,
-  created_at timestamp default current_timestamp
+  created_at timestamp default current_timestamp,
+  updated_at timestamp default current_timestamp
 )
 SQL;
     $result = $db-&gt;query($sql);
@@ -50,7 +51,7 @@ function insert($title, $body) {
 
 function update($id, $title, $body) {
   global $db;
-  $stmt = $db-&gt;prepare('update pages set title = :title, body = :body where id = :id');
+  $stmt = $db-&gt;prepare('update pages set title = :title, body = :body, updated_at = current_timestamp where id = :id');
   return $stmt-&gt;execute(array(':id' =&gt; $id, ':title' =&gt; $title, ':body' =&gt; $body));
 }
 
@@ -276,4 +277,4 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') {
 } else if ($_SERVER['REQUEST_METHOD'] == 'GET') {
   get();
 }
-?&gt;
\ No newline at end of file
+?&gt;</diff>
      <filename>index.php</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>b910071aa07c6938f5cfe8dc867232b2737f12ea</id>
    </parent>
  </parents>
  <author>
    <name>kono</name>
    <email>kono@kono-desktop.(none)</email>
  </author>
  <url>http://github.com/jugyo/piki/commit/aa61f07bce56c372e8324a88824a7a0474e15c59</url>
  <id>aa61f07bce56c372e8324a88824a7a0474e15c59</id>
  <committed-date>2008-10-07T01:37:02-07:00</committed-date>
  <authored-date>2008-10-07T01:37:02-07:00</authored-date>
  <message>updated_at &#12459;&#12521;&#12512;&#12434;&#36861;&#21152;</message>
  <tree>c041161ba795523b9ac262f3918b0ae138b82e8c</tree>
  <committer>
    <name>kono</name>
    <email>kono@kono-desktop.(none)</email>
  </committer>
</commit>
