because urls get translated from tinyurl.com etc into their originals before saving
and urls can be that long
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',
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),