Mysql cannot index text column types

This commit is contained in:
Frederic Guillot 2017-01-14 11:34:48 -05:00
parent 66d9fb9a73
commit e3ed06ce11

View File

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