Fix MySQL/MariaDB types (#4387)

#fix https://github.com/FreshRSS/FreshRSS/issues/4386
Forgotten from https://github.com/FreshRSS/FreshRSS/pull/4347
This commit is contained in:
Alexandre Alapetite authored and GitHub committed 2022-05-23 10:45:44 +02:00
1 parent 2ac92b2d7c
commit 8668ca7230
2 files changed
+6 -6

No files matched your search

+3 -3
View File
@@ -5,14 +5,14 @@ SQL;
$GLOBALS['SQL_CREATE_TABLES'] = <<<'SQL'
CREATE TABLE IF NOT EXISTS `category` (
`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
`id` INT PRIMARY KEY AUTOINCREMENT NOT NULL,
`name` VARCHAR(255) NOT NULL,
`attributes` TEXT, -- v1.15.0
UNIQUE (`name`)
);
CREATE TABLE IF NOT EXISTS `feed` (
`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
`id` INT PRIMARY KEY AUTOINCREMENT NOT NULL,
`url` VARCHAR(511) NOT NULL,
`kind` SMALLINT DEFAULT 0, -- 1.20.0
`category` INT DEFAULT 0, -- 1.20.0
@@ -88,7 +88,7 @@ SQL;
$GLOBALS['SQL_CREATE_TABLE_TAGS'] = <<<'SQL'
CREATE TABLE IF NOT EXISTS `tag` ( -- v1.12
`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
`id` INT PRIMARY KEY AUTOINCREMENT NOT NULL,
`name` VARCHAR(63) NOT NULL,
`attributes` TEXT,
UNIQUE (`name`)