]> git.wh0rd.org Git - tt-rss.git/commitdiff
bump schema version to fix resetpass_token created as a wrong type in 124
authorAndrew Dolgov <noreply@fakecake.org>
Sun, 6 Apr 2014 13:40:16 +0000 (13:40 +0000)
committerAndrew Dolgov <noreply@fakecake.org>
Sun, 6 Apr 2014 13:40:16 +0000 (13:40 +0000)
include/functions.php
schema/ttrss_schema_mysql.sql
schema/ttrss_schema_pgsql.sql
schema/versions/mysql/125.sql [new file with mode: 0644]
schema/versions/pgsql/125.sql [new file with mode: 0644]

index 1390d8185592fcdd3534eed21af9e55a8319d314..2455bb801432b2c2edcbe7966362a4e77409b1f2 100644 (file)
@@ -1,6 +1,6 @@
 <?php
        define('EXPECTED_CONFIG_VERSION', 26);
-       define('SCHEMA_VERSION', 124);
+       define('SCHEMA_VERSION', 125);
 
        define('LABEL_BASE_INDEX', -1024);
        define('PLUGIN_FEED_BASE_INDEX', -128);
index b38cb8f02b151980435e84ef97e030aefc200743..e11b71106b227722c1908c0b831fe24e49342f87 100644 (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;
 
-insert into ttrss_version values (124);
+insert into ttrss_version values (125);
 
 create table ttrss_enclosures (id integer primary key auto_increment,
        content_url text not null,
index f0ac4cb818e7987eb05b211eb25fca1aff293dc4..3aa65e8b227846766e9f8000eff8474463964d77 100644 (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);
 
-insert into ttrss_version values (124);
+insert into ttrss_version values (125);
 
 create table ttrss_enclosures (id serial not null primary key,
        content_url text not null,
diff --git a/schema/versions/mysql/125.sql b/schema/versions/mysql/125.sql
new file mode 100644 (file)
index 0000000..9f004d9
--- /dev/null
@@ -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;
diff --git a/schema/versions/pgsql/125.sql b/schema/versions/pgsql/125.sql
new file mode 100644 (file)
index 0000000..e56e029
--- /dev/null
@@ -0,0 +1,5 @@
+begin;
+
+update ttrss_version set schema_version = 125;
+
+commit;