summaryrefslogtreecommitdiff
path: root/schema
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2006-03-02 13:15:28 +0100
committerAndrew Dolgov <[email protected]>2006-03-02 13:15:28 +0100
commit04febb0429adb24da43ac33bc6d925d450e10b60 (patch)
tree1ac3f2598dde0a97a2a65cce8007942b5d17dd96 /schema
parent9f3a7455689982f1c83c117f7f25396a8af687af (diff)
shrink session id length in db
Diffstat (limited to 'schema')
-rw-r--r--schema/ttrss_schema_mysql.sql2
-rw-r--r--schema/ttrss_schema_pgsql.sql2
-rw-r--r--schema/upgrade-1.1.3-1.1.4-mysql.sql4
-rw-r--r--schema/upgrade-1.1.3-1.1.4-pgsql.sql2
4 files changed, 5 insertions, 5 deletions
diff --git a/schema/ttrss_schema_mysql.sql b/schema/ttrss_schema_mysql.sql
index 671577cf9..b9e1a08eb 100644
--- a/schema/ttrss_schema_mysql.sql
+++ b/schema/ttrss_schema_mysql.sql
@@ -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 (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,
expire integer not null,
ip_address varchar(15) not null default '',
diff --git a/schema/ttrss_schema_pgsql.sql b/schema/ttrss_schema_pgsql.sql
index e393353a8..8db25bd61 100644
--- a/schema/ttrss_schema_pgsql.sql
+++ b/schema/ttrss_schema_pgsql.sql
@@ -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,
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,
expire integer not null,
ip_address varchar(15) not null default '');
diff --git a/schema/upgrade-1.1.3-1.1.4-mysql.sql b/schema/upgrade-1.1.3-1.1.4-mysql.sql
index 37b3674dc..329a297c6 100644
--- a/schema/upgrade-1.1.3-1.1.4-mysql.sql
+++ b/schema/upgrade-1.1.3-1.1.4-mysql.sql
@@ -5,11 +5,11 @@ update ttrss_entries set author = '';
alter table ttrss_entries change author author varchar(250) not null;
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,
expire integer not null,
ip_address varchar(15) not null default '',
- index (id),
+ index (id),
index (expire)) TYPE=InnoDB;
update ttrss_version set schema_version = 6;
diff --git a/schema/upgrade-1.1.3-1.1.4-pgsql.sql b/schema/upgrade-1.1.3-1.1.4-pgsql.sql
index 0191d6ede..4e81bb45a 100644
--- a/schema/upgrade-1.1.3-1.1.4-pgsql.sql
+++ b/schema/upgrade-1.1.3-1.1.4-pgsql.sql
@@ -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 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,
expire integer not null,
ip_address varchar(15) not null default '');