summaryrefslogtreecommitdiff
path: root/public/install.php
diff options
context:
space:
mode:
Diffstat (limited to 'public/install.php')
-rw-r--r--public/install.php24
1 files changed, 13 insertions, 11 deletions
diff --git a/public/install.php b/public/install.php
index 457605224..47856b6a7 100644
--- a/public/install.php
+++ b/public/install.php
@@ -15,7 +15,7 @@ define ('SQL_REQ_CAT', 'CREATE TABLE IF NOT EXISTS `%scategory` (
`name` varchar(255) NOT NULL,
`color` char(7) NOT NULL,
PRIMARY KEY (`id`),
- INDEX (`name`)
+ INDEX (`name`) //v0.7
);');
define ('SQL_REQ_FEED', 'CREATE TABLE IF NOT EXISTS `%sfeed` (
@@ -26,16 +26,18 @@ define ('SQL_REQ_FEED', 'CREATE TABLE IF NOT EXISTS `%sfeed` (
`website` varchar(255) NOT NULL,
`description` text NOT NULL,
`lastUpdate` int(11) NOT NULL,
- `priority` tinyint(2) NOT NULL DEFAULT \'10\',
+ `priority` tinyint(2) NOT NULL DEFAULT 10,
`pathEntries` varchar(511) DEFAULT NULL,
`httpAuth` varchar(511) DEFAULT NULL,
- `error` boolean NOT NULL DEFAULT \'0\',
- `keep_history` boolean NOT NULL DEFAULT \'0\',
+ `error` boolean NOT NULL DEFAULT 0,
+ `keep_history` boolean NOT NULL DEFAULT 0,
+ `cache_nbEntries` int NOT NULL DEFAULT 0, //v0.7
+ `cache_nbUnreads` int NOT NULL DEFAULT 0, //v0.7
PRIMARY KEY (`id`),
FOREIGN KEY (`category`) REFERENCES %scategory(id) ON DELETE SET NULL ON UPDATE CASCADE,
- INDEX (`name`),
- INDEX (`priority`),
- INDEX (`keep_history`)
+ INDEX (`name`), //v0.7
+ INDEX (`priority`), //v0.7
+ INDEX (`keep_history`) //v0.7
);');
define ('SQL_REQ_ENTRY', 'CREATE TABLE IF NOT EXISTS `%sentry` (
@@ -46,14 +48,14 @@ define ('SQL_REQ_ENTRY', 'CREATE TABLE IF NOT EXISTS `%sentry` (
`content` text NOT NULL,
`link` varchar(1023) NOT NULL,
`date` int(11) NOT NULL,
- `is_read` boolean NOT NULL DEFAULT \'0\',
- `is_favorite` boolean NOT NULL DEFAULT \'0\',
+ `is_read` boolean NOT NULL DEFAULT 0,
+ `is_favorite` boolean NOT NULL DEFAULT 0,
`id_feed` char(6) NOT NULL,
`tags` varchar(1023) NOT NULL,
PRIMARY KEY (`id`),
FOREIGN KEY (`id_feed`) REFERENCES %sfeed(id) ON DELETE CASCADE ON UPDATE CASCADE,
- INDEX (`is_favorite`),
- INDEX (`is_read`)
+ INDEX (`is_favorite`), //v0.7
+ INDEX (`is_read`) //v0.7
);');