diff options
| author | 2013-08-18 14:59:03 +0200 | |
|---|---|---|
| committer | 2013-08-18 14:59:03 +0200 | |
| commit | 37b641966f4a550637421c345e5013cf24645226 (patch) | |
| tree | fa6978ede72d2ba4f4b52f294c13d71f20051794 /app/models/Entry.php | |
| parent | 24b3b0cdfc566be18925498993f894097a3d98bb (diff) | |
Issue #100 : base pour utilisation SQLite
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
Diffstat (limited to 'app/models/Entry.php')
| -rwxr-xr-x | app/models/Entry.php | 2 |
1 files changed, 1 insertions, 1 deletions
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 ( |
