From 098b96970daeee15eaa5862b0147d0645cf68668 Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Mon, 2 May 2016 01:56:01 +0100 Subject: [PATCH] sqlite truncate --- lib/php/db/types/sqlite.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/php/db/types/sqlite.php b/lib/php/db/types/sqlite.php index 476138cb..f6d566a7 100644 --- a/lib/php/db/types/sqlite.php +++ b/lib/php/db/types/sqlite.php @@ -8,6 +8,7 @@ $DB_TYPES['sqlite'] = array ( 'quote' => function(&$v) { return "'".str_replace("'","''",$v)."'"; }, 'table.sql' => 'SELECT sql FROM sqlite_master WHERE name=\'\'', +'table.truncate' => 'DELETE FROM \'\'', 'sqliteCreateFunction' => array ( 'ip2int' => function ($value) { return ip2long($value); }, -- 2.47.3