bump schema version to fix resetpass_token created as a wrong type in 124

This commit is contained in:
Andrew Dolgov 2014-04-06 13:40:16 +00:00
parent 575f2b24be
commit 8067dc8ca5
5 changed files with 18 additions and 3 deletions

View File

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

View File

@ -302,7 +302,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; create table ttrss_version (schema_version int not null) ENGINE=InnoDB DEFAULT CHARSET=UTF8;
insert into ttrss_version values (124); insert into ttrss_version values (125);
create table ttrss_enclosures (id integer primary key auto_increment, create table ttrss_enclosures (id integer primary key auto_increment,
content_url text not null, content_url text not null,

View File

@ -261,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); create table ttrss_version (schema_version int not null);
insert into ttrss_version values (124); insert into ttrss_version values (125);
create table ttrss_enclosures (id serial not null primary key, create table ttrss_enclosures (id serial not null primary key,
content_url text not null, content_url text not null,

View File

@ -0,0 +1,10 @@
begin;
alter table ttrss_users drop column resetpass_token;
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 = 125;
commit;

View File

@ -0,0 +1,5 @@
begin;
update ttrss_version set schema_version = 125;
commit;