aboutsummaryrefslogtreecommitdiff
path: root/app/SQL/install.sql.sqlite.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/SQL/install.sql.sqlite.php')
-rw-r--r--app/SQL/install.sql.sqlite.php12
1 files changed, 10 insertions, 2 deletions
diff --git a/app/SQL/install.sql.sqlite.php b/app/SQL/install.sql.sqlite.php
index d1dbfc192..88de84358 100644
--- a/app/SQL/install.sql.sqlite.php
+++ b/app/SQL/install.sql.sqlite.php
@@ -91,7 +91,7 @@ $SQL_CREATE_TABLE_TAGS = array(
);',
'CREATE TABLE IF NOT EXISTS `entrytag` (
`id_tag` SMALLINT,
- `id_entry` SMALLINT,
+ `id_entry` BIGINT,
PRIMARY KEY (`id_tag`,`id_entry`),
FOREIGN KEY (`id_tag`) REFERENCES `tag` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
FOREIGN KEY (`id_entry`) REFERENCES `entry` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
@@ -105,4 +105,12 @@ define(
VALUES(:url, 1, :name, :website, :description, 86400);'
);
-define('SQL_DROP_TABLES', 'DROP TABLE IF EXISTS `entrytag`, `tag`, `entrytmp`, `entry`, `feed`, `category`');
+global $SQL_DROP_TABLES;
+$SQL_DROP_TABLES = [
+ 'DROP TABLE IF EXISTS `entrytag`',
+ 'DROP TABLE IF EXISTS `tag`',
+ 'DROP TABLE IF EXISTS `entrytmp`',
+ 'DROP TABLE IF EXISTS `entry`',
+ 'DROP TABLE IF EXISTS `feed`',
+ 'DROP TABLE IF EXISTS `category`',
+];