summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-09-17 14:34:39 +0400
committerAndrew Dolgov <[email protected]>2013-09-17 14:34:39 +0400
commite596b5a9dd39b9abdfc2220fca6eda54948da593 (patch)
tree32c8c70deb4290c4a8f88239f0eb1fa75a6ff4bb
parent80c448cb98ba1234e5a2c2f7ef240f9d6cef645a (diff)
add update script to convert myisam tables to innodb (bump version)
-rw-r--r--include/functions.php2
-rw-r--r--schema/ttrss_schema_mysql.sql2
-rw-r--r--schema/ttrss_schema_pgsql.sql2
-rw-r--r--schema/versions/mysql/123.sql9
-rw-r--r--schema/versions/pgsql/123.sql5
5 files changed, 17 insertions, 3 deletions
diff --git a/include/functions.php b/include/functions.php
index 55896b66a..3b1873256 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -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);
diff --git a/schema/ttrss_schema_mysql.sql b/schema/ttrss_schema_mysql.sql
index 243dad8cc..aae0abf20 100644
--- a/schema/ttrss_schema_mysql.sql
+++ b/schema/ttrss_schema_mysql.sql
@@ -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,
diff --git a/schema/ttrss_schema_pgsql.sql b/schema/ttrss_schema_pgsql.sql
index faa1ac1a0..82c03f20f 100644
--- a/schema/ttrss_schema_pgsql.sql
+++ b/schema/ttrss_schema_pgsql.sql
@@ -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
index 000000000..f311d060b
--- /dev/null
+++ b/schema/versions/mysql/123.sql
@@ -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
index 000000000..999d48bf7
--- /dev/null
+++ b/schema/versions/pgsql/123.sql
@@ -0,0 +1,5 @@
+begin;
+
+update ttrss_version set schema_version = 123;
+
+commit;