From 37b641966f4a550637421c345e5013cf24645226 Mon Sep 17 00:00:00 2001 From: Marien Fressinaud Date: Sun, 18 Aug 2013 14:59:03 +0200 Subject: Issue #100 : base pour utilisation SQLite MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ajout de la structure pour l'utilisation de SQLite. Tout n'est pas fonctionnel, loin de là, certaines requêtes SQL ne passent pas. Pour essayer tout de même, décommenter le bloc TODO dans le fichier public/install.php --- app/models/Entry.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app') diff --git a/app/models/Entry.php b/app/models/Entry.php index ae70bb58e..1d08f09da 100755 --- a/app/models/Entry.php +++ b/app/models/Entry.php @@ -350,7 +350,7 @@ class EntryDAO extends Model_pdo { public function cleanOldEntries ($nb_month) { $date = 60 * 60 * 24 * 30 * $nb_month; - $sql = 'DELETE FROM ' . $this->prefix . 'entry WHERE date <= ? AND is_favorite = 0 AND annotation = ""'; + $sql = 'DELETE FROM ' . $this->prefix . 'entry WHERE date <= ? AND is_favorite = 0'; $stm = $this->bd->prepare ($sql); $values = array ( -- cgit v1.2.3