summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorBrenda Wallace <shiny@cpan.org>2009-08-11 09:38:17 +1200
committerBrenda Wallace <shiny@cpan.org>2009-08-11 09:38:17 +1200
commitf4f13166f712153b704329804be5508d78437cdd (patch)
treeeba0e315248f06e21047c7137025a8585ec559d0 /db
parent002cc755b2a521486b0216e2d6f8a3952bda0bae (diff)
Revert "change file.url to from a varchar(255) to varchar(2047)"
This reverts commit 002cc755b2a521486b0216e2d6f8a3952bda0bae. mysql doesn't allow varchar > 255 chars reverting until have a working solution
Diffstat (limited to 'db')
-rw-r--r--db/laconica.sql2
-rw-r--r--db/laconica_pg.sql2
2 files changed, 2 insertions, 2 deletions
diff --git a/db/laconica.sql b/db/laconica.sql
index ff8c4c13e..f01107176 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(2047) comment 'destination URL after following redirections',
+ url varchar(255) 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 59300c8ca..b5626d3f4 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(2047) unique,
+ url varchar(255) unique,
mimetype varchar(50),
size integer,
title varchar(255),