From: Andrew Dolgov Date: Fri, 25 Nov 2005 12:37:42 +0000 (+0100) Subject: themes schema X-Git-Tag: schema_feature_freeze_for_1.1~99 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=e552e5a2007e393bc16cacb5e046b1d583ed5748;p=tt-rss.git themes schema --- diff --git a/schema/ttrss_schema_mysql.sql b/schema/ttrss_schema_mysql.sql index b506a5d1..edd91e13 100644 --- a/schema/ttrss_schema_mysql.sql +++ b/schema/ttrss_schema_mysql.sql @@ -13,12 +13,20 @@ drop table if exists ttrss_entries; 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; + +create table ttrss_themes(id integer not null primary key auto_increment, + theme_name varchar(200) not null, + theme_path varchar(200) not null) TYPE=InnoDB; create table ttrss_users (id integer primary key not null auto_increment, login varchar(120) not null unique, pwd_hash varchar(250) not null, last_login datetime default null, - access_level integer not null default 0) TYPE=InnoDB; + access_level integer not null default 0, + theme_id integer default null, + index (theme_id), + foreign key (theme_id) references ttrss_themes(id)) TYPE=InnoDB; insert into ttrss_users (login,pwd_hash,access_level) values ('admin', 'password', 10); diff --git a/schema/ttrss_schema_pgsql.sql b/schema/ttrss_schema_pgsql.sql index d761576c..30ad8cb5 100644 --- a/schema/ttrss_schema_pgsql.sql +++ b/schema/ttrss_schema_pgsql.sql @@ -13,12 +13,18 @@ drop table ttrss_entries; drop table ttrss_feeds; drop table ttrss_feed_categories; drop table ttrss_users; +drop table ttrss_themes; + +create table ttrss_themes(id serial not null primary key, + theme_name varchar(200) not null, + theme_path varchar(200) not null); create table ttrss_users (id serial not null primary key, login varchar(120) not null unique, pwd_hash varchar(250) not null, last_login timestamp default null, - access_level integer not null default 0); + access_level integer not null default 0 + theme_id integer references ttrss_themes(id) default null); insert into ttrss_users (login,pwd_hash,access_level) values ('admin', 'password', 10);