Remove special case for SQLite

More uniform logic for the 3 databases.
Fix wrong DROP TABLE for SQLite.
This commit is contained in:
Alexandre Alapetite
2019-09-12 11:56:37 +02:00
parent fbc849fc36
commit 2b8b5937f2
3 changed files with 42 additions and 17 deletions

View File

@@ -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`',
];