From e3ed06ce1120f26b5a2807f1ef262d193ec0d735 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 14 Jan 2017 11:34:48 -0500 Subject: [PATCH] Mysql cannot index text column types --- app/schemas/mysql.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/schemas/mysql.php b/app/schemas/mysql.php index 871ada2..3e8988d 100644 --- a/app/schemas/mysql.php +++ b/app/schemas/mysql.php @@ -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 TEXT NOT NULL, - site_url TEXT, + feed_url VARCHAR(512) NOT NULL, + site_url VARCHAR(512), title VARCHAR(255) NOT NULL, expiration BIGINT DEFAULT 0, last_checked BIGINT DEFAULT 0,