summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorZach Copley <zach@status.net>2009-12-09 02:14:48 +0000
committerZach Copley <zach@status.net>2010-01-05 23:19:13 -0800
commit9960ec2143445417a5f44f307b1dfbbd97194b45 (patch)
tree31ea6821a9fe684e93ef5427a0f69836b035db12 /lib
parentff26b8d88b9e3d185afa83fd2b08c0d67cd4f78d (diff)
Support an 'extra' clause when definining a column (e.g.: 'on update
CURRENT_TIMESTAMP').
Diffstat (limited to 'lib')
-rw-r--r--lib/schema.php4
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;
}
}