From f9153ab6c2a5ca00d824479a7b339d8a43a7feca Mon Sep 17 00:00:00 2001 From: ClayLennart Date: Tue, 15 Jul 2014 09:50:51 +0200 Subject: [PATCH] Add bigint support --- code/SQLite3SchemaManager.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/code/SQLite3SchemaManager.php b/code/SQLite3SchemaManager.php index 2d085d4..1e5e636 100644 --- a/code/SQLite3SchemaManager.php +++ b/code/SQLite3SchemaManager.php @@ -506,6 +506,16 @@ class SQLite3SchemaManager extends DBSchemaManager { return "INTEGER({$values['precision']}) " . strtoupper($values['null']) . " DEFAULT " . (int)$values['default']; } + /** + * Return a bigint type-formatted string + * + * @params array $values Contains a tokenised list of info about this data type + * @return string + */ + public function bigint($values, $asDbValue = false){ + return $this->int($values, $asDbValue); + } + /** * Return a datetime type-formatted string * For SQLite3, we simply return the word 'TEXT', no other parameters are necessary