shrink session id length in db

This commit is contained in:
Andrew Dolgov 2006-03-02 13:15:28 +01:00
parent 9f3a745568
commit 04febb0429
4 changed files with 5 additions and 5 deletions

View File

@ -256,7 +256,7 @@ create table ttrss_scheduled_updates (id integer not null primary key auto_incre
foreign key (owner_uid) references ttrss_users(id) ON DELETE CASCADE, foreign key (owner_uid) references ttrss_users(id) ON DELETE CASCADE,
foreign key (feed_id) references ttrss_feeds(id) ON DELETE CASCADE) TYPE=InnoDB; foreign key (feed_id) references ttrss_feeds(id) ON DELETE CASCADE) TYPE=InnoDB;
create table ttrss_sessions (id varchar(300) unique not null primary key, create table ttrss_sessions (id varchar(250) unique not null primary key,
data text, data text,
expire integer not null, expire integer not null,
ip_address varchar(15) not null default '', ip_address varchar(15) not null default '',

View File

@ -231,7 +231,7 @@ create table ttrss_scheduled_updates (id serial not null primary key,
feed_id integer default null references ttrss_feeds(id) ON DELETE CASCADE, feed_id integer default null references ttrss_feeds(id) ON DELETE CASCADE,
entered timestamp not null default NOW()); entered timestamp not null default NOW());
create table ttrss_sessions (id varchar(300) unique not null primary key, create table ttrss_sessions (id varchar(250) unique not null primary key,
data text, data text,
expire integer not null, expire integer not null,
ip_address varchar(15) not null default ''); ip_address varchar(15) not null default '');

View File

@ -5,11 +5,11 @@ update ttrss_entries set author = '';
alter table ttrss_entries change author author varchar(250) not null; alter table ttrss_entries change author author varchar(250) not null;
alter table ttrss_entries alter column author set default ''; alter table ttrss_entries alter column author set default '';
create table ttrss_sessions (id varchar(300) unique not null primary key, create table ttrss_sessions (id varchar(250) not null primary key,
data text, data text,
expire integer not null, expire integer not null,
ip_address varchar(15) not null default '', ip_address varchar(15) not null default '',
index (id), index (id),
index (expire)) TYPE=InnoDB; index (expire)) TYPE=InnoDB;
update ttrss_version set schema_version = 6; update ttrss_version set schema_version = 6;

View File

@ -7,7 +7,7 @@ update ttrss_entries set author = '';
alter table ttrss_entries alter column author set not null; alter table ttrss_entries alter column author set not null;
alter table ttrss_entries alter column author set default ''; alter table ttrss_entries alter column author set default '';
create table ttrss_sessions (id varchar(300) unique not null primary key, create table ttrss_sessions (id varchar(250) unique not null primary key,
data text, data text,
expire integer not null, expire integer not null,
ip_address varchar(15) not null default ''); ip_address varchar(15) not null default '');