]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Support an 'extra' clause when definining a column (e.g.: 'on update
authorZach Copley <zach@status.net>
Wed, 9 Dec 2009 02:14:48 +0000 (02:14 +0000)
committerZach Copley <zach@status.net>
Wed, 6 Jan 2010 07:19:13 +0000 (23:19 -0800)
CURRENT_TIMESTAMP').

lib/schema.php

index 6fe442d56bbfcef5227f7b09196d3005b9ba7d07..a7f64ebed10cfce99fb780756a6fffa78831df83 100644 (file)
@@ -528,6 +528,10 @@ class Schema
             $sql .= " auto_increment ";
         }
 
+        if (!empty($cd->extra)) {
+            $sql .= "{$cd->extra} ";
+        }
+
         return $sql;
     }
 }