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'],