diff options
Diffstat (limited to 'schema')
-rw-r--r-- | schema/ttrss_schema_mysql.sql | 8 | ||||
-rw-r--r-- | schema/ttrss_schema_pgsql.sql | 9 | ||||
-rw-r--r-- | schema/upgrade-1.1.3-1.1.4-mysql.sql | 7 | ||||
-rw-r--r-- | schema/upgrade-1.1.3-1.1.4-pgsql.sql | 8 |
4 files changed, 32 insertions, 0 deletions
diff --git a/schema/ttrss_schema_mysql.sql b/schema/ttrss_schema_mysql.sql index eb1076999..5032334c8 100644 --- a/schema/ttrss_schema_mysql.sql +++ b/schema/ttrss_schema_mysql.sql @@ -16,6 +16,7 @@ drop table if exists ttrss_feeds; drop table if exists ttrss_feed_categories; drop table if exists ttrss_users; drop table if exists ttrss_themes; +drop table if exists ttrss_sessions; begin; @@ -255,4 +256,11 @@ 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 (int_id integer not null primary key auto_increment, + id varchar(300) unique not null, + data text, + expire integer not null, + index (id), + index (expire)) TYPE=InnoDB; + commit; diff --git a/schema/ttrss_schema_pgsql.sql b/schema/ttrss_schema_pgsql.sql index 97434ce2a..ec98bbb22 100644 --- a/schema/ttrss_schema_pgsql.sql +++ b/schema/ttrss_schema_pgsql.sql @@ -16,6 +16,7 @@ drop table ttrss_feeds; drop table ttrss_feed_categories; drop table ttrss_users; drop table ttrss_themes; +drop table ttrss_sessions; begin; @@ -230,4 +231,12 @@ 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 (int_id serial not null primary key, + id varchar(300) unique not null, + data text, + expire integer not null); + +create index ttrss_sessions_id_index on ttrss_sessions(id); +create index ttrss_sessions_expire_index on ttrss_sessions(expire); + commit; 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 2570bb4ba..f2e9bd16c 100644 --- a/schema/upgrade-1.1.3-1.1.4-mysql.sql +++ b/schema/upgrade-1.1.3-1.1.4-mysql.sql @@ -5,5 +5,12 @@ 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 (int_id integer not null primary key auto_increment, + id varchar(300) unique not null, + data text, + expire integer not null, + 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 92025c4af..6a0f46b55 100644 --- a/schema/upgrade-1.1.3-1.1.4-pgsql.sql +++ b/schema/upgrade-1.1.3-1.1.4-pgsql.sql @@ -7,6 +7,14 @@ 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 (int_id serial not null primary key, + id varchar(300) unique not null, + data text, + expire integer not null); + +create index ttrss_sessions_id_index on ttrss_sessions(id); +create index ttrss_sessions_expire_index on ttrss_sessions(expire); + update ttrss_version set schema_version = 6; commit; |