From: Brenda Wallace Date: Mon, 10 Aug 2009 21:25:13 +0000 (+1200) Subject: change file.url to from a varchar(255) to varchar(2047) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=002cc755b2a521486b0216e2d6f8a3952bda0bae;p=quix0rs-gnu-social.git change file.url to from a varchar(255) to varchar(2047) because urls get translated from tinyurl.com etc into their originals before saving and urls can be that long --- diff --git a/db/laconica.sql b/db/laconica.sql index f011071760..ff8c4c13ee 100644 --- a/db/laconica.sql +++ b/db/laconica.sql @@ -433,7 +433,7 @@ create table group_inbox ( create table file ( id integer primary key auto_increment, - url varchar(255) comment 'destination URL after following redirections', + url varchar(2047) comment 'destination URL after following redirections', mimetype varchar(50) comment 'mime type of resource', size integer comment 'size of resource when available', title varchar(255) comment 'title of resource when available', diff --git a/db/laconica_pg.sql b/db/laconica_pg.sql index b5626d3f4a..59300c8ca5 100644 --- a/db/laconica_pg.sql +++ b/db/laconica_pg.sql @@ -450,7 +450,7 @@ create index group_inbox_created_idx on group_inbox using btree(created); create sequence file_seq; create table file ( id bigint default nextval('file_seq') primary key /* comment 'unique identifier' */, - url varchar(255) unique, + url varchar(2047) unique, mimetype varchar(50), size integer, title varchar(255),