Increase url field size for feeds table

This commit is contained in:
Frederic Guillot 2017-01-14 11:20:01 -05:00
parent b550984d5a
commit 66d9fb9a73
3 changed files with 11 additions and 5 deletions

View File

@ -34,8 +34,8 @@ function version_1(PDO $pdo)
$pdo->exec("CREATE TABLE feeds (
id BIGINT AUTO_INCREMENT PRIMARY KEY,
user_id INT NOT NULL,
feed_url VARCHAR(255) NOT NULL,
site_url VARCHAR(255),
feed_url TEXT NOT NULL,
site_url TEXT,
title VARCHAR(255) NOT NULL,
expiration BIGINT DEFAULT 0,
last_checked BIGINT DEFAULT 0,

View File

@ -5,7 +5,13 @@ namespace Miniflux\Schema;
use PDO;
use Miniflux\Helper;
const VERSION = 3;
const VERSION = 4;
function version_4(PDO $pdo)
{
$pdo->exec('ALTER TABLE feeds ALTER COLUMN feed_url TYPE TEXT');
$pdo->exec('ALTER TABLE feeds ALTER COLUMN site_url TYPE TEXT');
}
function version_3(PDO $pdo)
{