schema: add (unused) ttrss_feeds.auth_pass_encrypted, bump schema

This commit is contained in:
Andrew Dolgov 2007-04-18 07:25:51 +01:00
parent 21f4756a3f
commit 155a2a53ff
6 changed files with 17 additions and 3 deletions

View file

@ -12,7 +12,7 @@
error_reporting(DEFAULT_ERROR_LEVEL); */ error_reporting(DEFAULT_ERROR_LEVEL); */
define('SCHEMA_VERSION', 15); define('SCHEMA_VERSION', 16);
require_once "sanity_check.php"; require_once "sanity_check.php";
require_once "config.php"; require_once "config.php";

View file

@ -68,6 +68,7 @@ create table ttrss_feeds (id integer not null auto_increment primary key,
rtl_content bool not null default false, rtl_content bool not null default false,
hidden bool not null default false, hidden bool not null default false,
include_in_digest boolean not null default true, include_in_digest boolean not null default true,
auth_pass_encrypted boolean not null default false,
index(owner_uid), index(owner_uid),
foreign key (owner_uid) references ttrss_users(id) ON DELETE CASCADE, foreign key (owner_uid) references ttrss_users(id) ON DELETE CASCADE,
index(cat_id), index(cat_id),

View file

@ -63,7 +63,8 @@ create table ttrss_feeds (id serial not null primary key,
auth_pass varchar(250) not null default '', auth_pass varchar(250) not null default '',
hidden boolean not null default false, hidden boolean not null default false,
include_in_digest boolean not null default true, include_in_digest boolean not null default true,
rtl_content boolean not null default false); rtl_content boolean not null default false,
auth_pass_encrypted boolean not null default false);
create index ttrss_feeds_owner_uid_index on ttrss_feeds(owner_uid); create index ttrss_feeds_owner_uid_index on ttrss_feeds(owner_uid);

View file

@ -0,0 +1,6 @@
alter table ttrss_feeds add column auth_pass_encrypted bool;
update ttrss_feeds set auth_pass_encrypted = false;
alter table ttrss_feeds change auth_pass_encrypted auth_pass_encrypted bool not null;
alter table ttrss_feeds alter column auth_pass_encrypted set default false;
update ttrss_version set schema_version = 16;

View file

@ -0,0 +1,6 @@
alter table ttrss_feeds add column auth_pass_encrypted boolean;
update ttrss_feeds set auth_pass_encrypted = false;
alter table ttrss_feeds alter column auth_pass_encrypted set not null;
alter table ttrss_feeds alter column auth_pass_encrypted set default false;
update ttrss_version set schema_version = 16;

View file

@ -25,7 +25,7 @@
exit; exit;
} }
define('SCHEMA_VERSION', 15); define('SCHEMA_VERSION', 16);
?> ?>