]> git.wh0rd.org Git - tt-rss.git/commitdiff
add update script to convert myisam tables to innodb (bump version)
authorAndrew Dolgov <fox@fakecake.org>
Tue, 17 Sep 2013 10:34:39 +0000 (14:34 +0400)
committerAndrew Dolgov <fox@fakecake.org>
Tue, 17 Sep 2013 10:34:39 +0000 (14:34 +0400)
include/functions.php
schema/ttrss_schema_mysql.sql
schema/ttrss_schema_pgsql.sql
schema/versions/mysql/123.sql [new file with mode: 0644]
schema/versions/pgsql/123.sql [new file with mode: 0644]

index 55896b66adcfb6debe44e6d3e07b363bf8b11fd5..3b1873256503adb9976a4cbbe5164fe0e8d7f16e 100644 (file)
@@ -1,6 +1,6 @@
 <?php
        define('EXPECTED_CONFIG_VERSION', 26);
-       define('SCHEMA_VERSION', 122);
+       define('SCHEMA_VERSION', 123);
 
        define('LABEL_BASE_INDEX', -1024);
        define('PLUGIN_FEED_BASE_INDEX', -128);
index 243dad8cc44d7bb096778d9c67e445ae56fd198c..aae0abf204571ca54857f307c5689370a64d6fda 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 (122);
+insert into ttrss_version values (123);
 
 create table ttrss_enclosures (id integer primary key auto_increment,
        content_url text not null,
index faa1ac1a0373bc9c2cb3567115e55b3aa1fbb526..82c03f20faef2c6e3637833d3f2a3049ad1bb91d 100644 (file)
@@ -260,7 +260,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 (122);
+insert into ttrss_version values (123);
 
 create table ttrss_enclosures (id serial not null primary key,
        content_url text not null,
diff --git a/schema/versions/mysql/123.sql b/schema/versions/mysql/123.sql
new file mode 100644 (file)
index 0000000..f311d06
--- /dev/null
@@ -0,0 +1,9 @@
+begin;
+
+ALTER TABLE ttrss_counters_cache ENGINE=InnoDB DEFAULT CHARSET=UTF8;
+ALTER TABLE ttrss_cat_counters_cache ENGINE=InnoDB DEFAULT CHARSET=UTF8;
+ALTER TABLE ttrss_feedbrowser_cache ENGINE=InnoDB DEFAULT CHARSET=UTF8;
+
+update ttrss_version set schema_version = 123;
+
+commit;
diff --git a/schema/versions/pgsql/123.sql b/schema/versions/pgsql/123.sql
new file mode 100644 (file)
index 0000000..999d48b
--- /dev/null
@@ -0,0 +1,5 @@
+begin;
+
+update ttrss_version set schema_version = 123;
+
+commit;