From 9642fbb2211368f8063f657d34e043b311df4718 Mon Sep 17 00:00:00 2001 From: Marien Fressinaud Date: Thu, 22 Aug 2013 11:11:22 +0200 Subject: Fix issue #118 : option pour garder historique MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit *** ATTENTION, MODIFICATION DE LA BDD *** Cette option permet de garder les vieux articles d'un flux en même s'ils sont plus vieux que la limite des X mois d'historique (3 par défaut) Les modifications de la base de données : - ajout du champ "keep_history int(1) DEFAULT 0" à la table feed - suppression des champs "is_public" et "lastUpdate" de la table entry (n'étaient plus utilisés de toute façon) --- public/install.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'public/install.php') diff --git a/public/install.php b/public/install.php index 31c96fb39..3e2d7b0f9 100644 --- a/public/install.php +++ b/public/install.php @@ -27,6 +27,7 @@ define ('SQL_REQ_FEED', 'CREATE TABLE IF NOT EXISTS `%sfeed` ( `pathEntries` varchar(500) DEFAULT NULL, `httpAuth` varchar(500) DEFAULT NULL, `error` int(1) NOT NULL DEFAULT \'0\', + `keep_history` int(1) NOT NULL DEFAULT \'0\', PRIMARY KEY (`id`), FOREIGN KEY (`category`) REFERENCES %scategory(id) ON DELETE SET NULL ON UPDATE CASCADE );'); @@ -39,12 +40,10 @@ define ('SQL_REQ_ENTRY', 'CREATE TABLE IF NOT EXISTS `%sentry` ( `content` text NOT NULL, `link` text NOT NULL, `date` int(11) NOT NULL, - `is_read` int(11) NOT NULL, - `is_favorite` int(11) NOT NULL, - `is_public` int(1) NOT NULL, + `is_read` int(11) NOT NULL DEFAULT \'0\', + `is_favorite` int(11) NOT NULL DEFAULT \'0\', `id_feed` varchar(6) NOT NULL, `tags` text NOT NULL, - `lastUpdate` int(11) NOT NULL, PRIMARY KEY (`id`), FOREIGN KEY (`id_feed`) REFERENCES %sfeed(id) ON DELETE CASCADE ON UPDATE CASCADE );'); -- cgit v1.2.3