require_once "functions.php";
define('EXPECTED_CONFIG_VERSION', 15);
- define('SCHEMA_VERSION', 33);
+ define('SCHEMA_VERSION', 34);
if (!file_exists("config.php")) {
print __("<b>Fatal Error</b>: You forgot to copy
owner_uid integer not null,
title varchar(200) not null,
cat_id integer default null,
- feed_url varchar(250) not null,
+ feed_url text not null,
icon_url varchar(250) not null default '',
update_interval integer not null default 0,
purge_interval integer not null default 0,
create table ttrss_version (schema_version int not null) TYPE=InnoDB;
-insert into ttrss_version values (33);
+insert into ttrss_version values (34);
create table ttrss_enclosures (id serial not null primary key,
content_url text not null,
owner_uid integer not null references ttrss_users(id) on delete cascade,
title varchar(200) not null,
cat_id integer default null references ttrss_feed_categories(id) on delete set null,
- feed_url varchar(250) not null,
+ feed_url text not null,
icon_url varchar(250) not null default '',
update_interval integer not null default 0,
purge_interval integer not null default 0,
create table ttrss_version (schema_version int not null);
-insert into ttrss_version values (33);
+insert into ttrss_version values (34);
create table ttrss_enclosures (id serial not null primary key,
content_url text not null,
--- /dev/null
+alter table ttrss_feeds change feed_url feed_url text not null;
+
+update ttrss_version set schema_version = 34;
--- /dev/null
+alter table ttrss_feeds rename column feed_url to feed_url_old;
+alter table ttrss_feeds add column feed_url text;
+update ttrss_feeds set feed_url = feed_url_old;
+alter table ttrss_feeds alter column feed_url set not null;
+alter table ttrss_feeds drop column feed_url_old;
+
+update ttrss_version set schema_version = 34;