schema: add resetpass_token (bump schema)

This commit is contained in:
Andrew Dolgov 2014-03-09 10:49:36 +04:00
parent b41c5741fe
commit 3b19a53acf
5 changed files with 21 additions and 3 deletions

View File

@ -1,6 +1,6 @@
<?php
define('EXPECTED_CONFIG_VERSION', 26);
define('SCHEMA_VERSION', 123);
define('SCHEMA_VERSION', 124);
define('LABEL_BASE_INDEX', -1024);
define('PLUGIN_FEED_BASE_INDEX', -128);

View File

@ -53,6 +53,7 @@ create table ttrss_users (id integer primary key not null auto_increment,
created datetime default null,
twitter_oauth longtext default null,
otp_enabled boolean not null default false,
resetpass_token varchar(250) default null,
index (theme_id)) ENGINE=InnoDB DEFAULT CHARSET=UTF8;
insert into ttrss_users (login,pwd_hash,access_level) values ('admin',
@ -302,7 +303,7 @@ create table ttrss_tags (id integer primary key auto_increment,
create table ttrss_version (schema_version int not null) ENGINE=InnoDB DEFAULT CHARSET=UTF8;
insert into ttrss_version values (123);
insert into ttrss_version values (124);
create table ttrss_enclosures (id integer primary key auto_increment,
content_url text not null,

View File

@ -49,6 +49,7 @@ create table ttrss_users (id serial not null primary key,
salt varchar(250) not null default '',
twitter_oauth text default null,
otp_enabled boolean not null default false,
resetpass_token varchar(250) default null,
created timestamp default null);
insert into ttrss_users (login,pwd_hash,access_level) values ('admin',
@ -260,7 +261,7 @@ create index ttrss_tags_post_int_id_idx on ttrss_tags(post_int_id);
create table ttrss_version (schema_version int not null);
insert into ttrss_version values (123);
insert into ttrss_version values (124);
create table ttrss_enclosures (id serial not null primary key,
content_url text not null,

View File

@ -0,0 +1,8 @@
begin;
alter table ttrss_users add column resetpass_token boolean;
alter table ttrss_users alter column resetpass_token set default null;
update ttrss_version set schema_version = 124;
commit;

View File

@ -0,0 +1,8 @@
begin;
alter table ttrss_users add column resetpass_token varchar(250);
alter table ttrss_users alter column resetpass_token set default null;
update ttrss_version set schema_version = 124;
commit;