mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 03:25:55 +00:00
add update script to convert myisam tables to innodb (bump version)
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
9
schema/versions/mysql/123.sql
Normal file
9
schema/versions/mysql/123.sql
Normal file
@@ -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;
|
||||
5
schema/versions/pgsql/123.sql
Normal file
5
schema/versions/pgsql/123.sql
Normal file
@@ -0,0 +1,5 @@
|
||||
begin;
|
||||
|
||||
update ttrss_version set schema_version = 123;
|
||||
|
||||
commit;
|
||||
Reference in New Issue
Block a user