diff options
author | Zach Copley <zach@status.net> | 2009-12-09 02:14:48 +0000 |
---|---|---|
committer | Zach Copley <zach@status.net> | 2010-01-05 23:19:13 -0800 |
commit | 9960ec2143445417a5f44f307b1dfbbd97194b45 (patch) | |
tree | 31ea6821a9fe684e93ef5427a0f69836b035db12 /lib/schema.php | |
parent | ff26b8d88b9e3d185afa83fd2b08c0d67cd4f78d (diff) |
Support an 'extra' clause when definining a column (e.g.: 'on update
CURRENT_TIMESTAMP').
Diffstat (limited to 'lib/schema.php')
-rw-r--r-- | lib/schema.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/schema.php b/lib/schema.php index 6fe442d56..a7f64ebed 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; } } |