From: Zach Copley Date: Wed, 9 Dec 2009 02:14:48 +0000 (+0000) Subject: Support an 'extra' clause when definining a column (e.g.: 'on update X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9960ec2143445417a5f44f307b1dfbbd97194b45;p=quix0rs-gnu-social.git Support an 'extra' clause when definining a column (e.g.: 'on update CURRENT_TIMESTAMP'). --- diff --git a/lib/schema.php b/lib/schema.php index 6fe442d56b..a7f64ebed1 100644 --- a/lib/schema.php +++ b/lib/schema.php @@ -528,6 +528,10 @@ class Schema $sql .= " auto_increment "; } + if (!empty($cd->extra)) { + $sql .= "{$cd->extra} "; + } + return $sql; } }