Closed skwerlman closed 6 years ago
Yeah we totally have to change the type. :)
(:string
means varchar(255)
for postgresql)
It looks like we'll also have to change haha i'm still new to ecto, and apparently :name
and :magnet
to :text
as well, since these are also unlimited length. (and actually, the only migration we have already treats these as :text
):string
will map to :text
automatically
@skwerlman Let's go ahead and use text
for all of the "string" fields. Postgres will use the appropriate structure on the backend. No need for us to use string vs. text. Go all in with text.
PR updated to change all string fields to text
Given a very long URL (longer than 255 chars), the Leetx crawler crashes with:
I don't know if there's a clean way of solving this other than changing the URL column to
:text
because Leetx won't accept partial or missing slugs, even though they also have unique ids for torrents.