summaryrefslogtreecommitdiff
path: root/schema/ttrss_schema_mysql.sql
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2019-11-07 08:48:13 +0300
committerAndrew Dolgov <[email protected]>2019-11-07 08:48:13 +0300
commit60609637bc0301bc89bf00453273302a2126689d (patch)
tree86e3f808d5c2f1c9c8cd51d32ef3bb9606fa3132 /schema/ttrss_schema_mysql.sql
parent8551cce494d7db0ad291d2e16d3d66baa7cdc3ec (diff)
schema: when inserting initial forum feed, don't hardcode admin UID as 1
Diffstat (limited to 'schema/ttrss_schema_mysql.sql')
-rw-r--r--schema/ttrss_schema_mysql.sql2
1 files changed, 1 insertions, 1 deletions
diff --git a/schema/ttrss_schema_mysql.sql b/schema/ttrss_schema_mysql.sql
index db8e262b0..60b121e37 100644
--- a/schema/ttrss_schema_mysql.sql
+++ b/schema/ttrss_schema_mysql.sql
@@ -146,7 +146,7 @@ create table ttrss_feeds (id integer not null auto_increment primary key,
unique(feed_url(255), owner_uid)) ENGINE=InnoDB DEFAULT CHARSET=UTF8;
insert into ttrss_feeds (owner_uid, title, feed_url) values
- (1, 'Tiny Tiny RSS: Forum', 'http://tt-rss.org/forum/rss.php');
+ ((select id from ttrss_users where login = 'admin'), 'Tiny Tiny RSS: Forum', 'https://tt-rss.org/forum/rss.php');
create table ttrss_entries (id integer not null primary key auto_increment,
title text not null,