From 431b8341be2054954adb212a75846f678ff530ec Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Mon, 26 Dec 2016 21:06:03 -0500 Subject: [PATCH] Change author column type --- app/schemas/postgres.php | 2 +- scripts/migrate-db.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/schemas/postgres.php b/app/schemas/postgres.php index c20ea1d..6746640 100644 --- a/app/schemas/postgres.php +++ b/app/schemas/postgres.php @@ -58,7 +58,7 @@ function version_1(PDO $pdo) bookmark INTEGER DEFAULT 0, url TEXT NOT NULL, title TEXT NOT NULL, - author VARCHAR(255), + author TEXT, content TEXT, updated BIGINT, enclosure_url TEXT, diff --git a/scripts/migrate-db.php b/scripts/migrate-db.php index 94118b5..8d7e65b 100644 --- a/scripts/migrate-db.php +++ b/scripts/migrate-db.php @@ -137,7 +137,7 @@ function copy_items(PDO $db, $user_id, array $feed_ids, array $items) $item['bookmark'] ?: 0, $item['url'], $item['title'], - mb_strlen($item['author']) < 255 ? $item['author'] : '', + $item['author'], $item['content'], $item['updated'] ?: 0, $item['enclosure'],