summaryrefslogtreecommitdiff
path: root/app/sql.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2014-01-01 15:08:15 +0100
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2014-01-01 15:08:15 +0100
commita08201c41486815de25c71f5497e939631ea68b4 (patch)
tree17a79823fa42e46aeaa46e0ff2392e2c1d867f60 /app/sql.php
parent50c41d9bb2b1766feac984685bb2a954ab4799f3 (diff)
SQL : Insère la catégorie par défaut dès la création des tables
Diffstat (limited to 'app/sql.php')
-rw-r--r--app/sql.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/sql.php b/app/sql.php
index 8646b4da5..5a28858a7 100644
--- a/app/sql.php
+++ b/app/sql.php
@@ -52,6 +52,8 @@ CREATE TABLE IF NOT EXISTS `%1$sentry` (
INDEX (`is_read`) -- v0.7
) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci
ENGINE = INNODB;
+
+INSERT INTO `%1$scategory` (name) VALUES(:catName);
');
define('SQL_DROP_TABLES', 'DROP TABLES %1$sentry, %1$sfeed, %1$scategory');