add upgrade scripts to 1.1.3
This commit is contained in:
parent
085a5a7440
commit
b4548c3237
4 changed files with 26 additions and 0 deletions
|
@ -15,6 +15,7 @@ drop table if exists ttrss_feeds;
|
|||
drop table if exists ttrss_feed_categories;
|
||||
drop table if exists ttrss_users;
|
||||
drop table if exists ttrss_themes;
|
||||
drop table if exists ttrss_scheduled_updates;
|
||||
|
||||
begin;
|
||||
|
||||
|
|
|
@ -15,6 +15,7 @@ drop table ttrss_feeds;
|
|||
drop table ttrss_feed_categories;
|
||||
drop table ttrss_users;
|
||||
drop table ttrss_themes;
|
||||
drop table ttrss_scheduled_updates;
|
||||
|
||||
begin;
|
||||
|
||||
|
|
12
schema/upgrade-1.1.2-1.1.3-mysql.sql
Normal file
12
schema/upgrade-1.1.2-1.1.3-mysql.sql
Normal file
|
@ -0,0 +1,12 @@
|
|||
begin;
|
||||
|
||||
create table ttrss_scheduled_updates (id integer not null primary key auto_increment,
|
||||
owner_uid integer not null,
|
||||
feed_id integer default null,
|
||||
entered datetime not null,
|
||||
foreign key (owner_uid) references ttrss_users(id) ON DELETE CASCADE,
|
||||
foreign key (feed_id) references ttrss_feeds(id) ON DELETE CASCADE) TYPE=InnoDB;
|
||||
|
||||
update ttrss_version set schema_version = 5;
|
||||
|
||||
commit;
|
12
schema/upgrade-1.1.2-1.1.3-pgsql.sql
Normal file
12
schema/upgrade-1.1.2-1.1.3-pgsql.sql
Normal file
|
@ -0,0 +1,12 @@
|
|||
begin;
|
||||
|
||||
create table ttrss_scheduled_updates (id integer not null primary key auto_increment,
|
||||
owner_uid integer not null,
|
||||
feed_id integer default null,
|
||||
entered datetime not null,
|
||||
foreign key (owner_uid) references ttrss_users(id) ON DELETE CASCADE,
|
||||
foreign key (feed_id) references ttrss_feeds(id) ON DELETE CASCADE) TYPE=InnoDB;
|
||||
|
||||
update ttrss_version set schema_version = 5;
|
||||
|
||||
commit;
|
Loading…
Reference in a new issue