--- /dev/null
+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;
--- /dev/null
+begin;
+
+create table ttrss_scheduled_updates (id serial not null primary key,
+ owner_uid integer not null references ttrss_users(id) ON DELETE CASCADE,
+ feed_id integer default null references ttrss_feeds(id) ON DELETE CASCADE,
+ entered timestamp not null default NOW());
+
+update ttrss_version set schema_version = 5;
+
+commit;
no_orig_date bool not null default 0,
date_entered datetime not null,
num_comments integer not null default 0,
- comments varchar(250) not null default '') TYPE=InnoDB;
+ comments varchar(250) not null default '',
+ author varchar(250) not null default '') TYPE=InnoDB;
create table ttrss_user_entries (
int_id integer not null primary key auto_increment,
no_orig_date boolean not null default false,
date_entered timestamp not null default NOW(),
num_comments integer not null default 0,
- comments varchar(250) not null default '');
+ comments varchar(250) not null default '',
+ author varchar(250) not null default '');
create index ttrss_entries_guid_index on ttrss_entries(guid);
create index ttrss_entries_title_index on ttrss_entries(title);
+++ /dev/null
-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;
+++ /dev/null
-begin;
-
-create table ttrss_scheduled_updates (id serial not null primary key,
- owner_uid integer not null references ttrss_users(id) ON DELETE CASCADE,
- feed_id integer default null references ttrss_feeds(id) ON DELETE CASCADE,
- entered timestamp not null default NOW());
-
-update ttrss_version set schema_version = 5;
-
-commit;
--- /dev/null
+alter table ttrss_entries add column author varchar(250);
+
+update ttrss_entries set author = ;;;
+
+alter table ttrss_entries change author author varchar(250) not null;
+alter table ttrss_entries alter column author set default '';
+
+update ttrss_version set schema_version = 6;
+
--- /dev/null
+begin;
+
+alter table ttrss_entries add column author varchar(250);
+
+update ttrss_entries set author = '';
+
+alter table ttrss_entries alter column author set not null;
+alter table ttrss_entries alter column author set default '';
+
+update ttrss_version set schema_version = 6;
+
+commit;