Add welcome item to initial sql setup

This commit is contained in:
Tim Van Baak 2025-02-10 08:26:15 -08:00
parent 8d9dcec038
commit 74f7230c65

View File

@ -22,10 +22,10 @@ create table items(
id text not null, id text not null,
created int not null default (unixepoch()), created int not null default (unixepoch()),
active int not null, active int not null,
title text, title text not null,
author text, author text not null,
body text, body text not null,
link text, link text not null,
time int, time int,
ttl int, ttl int,
ttd int, ttd int,
@ -42,7 +42,7 @@ create table channels(
) strict; ) strict;
create table password( create table password(
id int not null, id int not null,
hash text, hash text not null,
unique (id) on conflict replace unique (id) on conflict replace
) strict; ) strict;
create table sessions( create table sessions(
@ -50,3 +50,12 @@ create table sessions(
expires int default 0, expires int default 0,
primary key (id) primary key (id)
) strict; ) strict;
-- user introduction
insert into sources (name) values ('default');
insert into channels (name, source) values ('home', 'default');
insert into actions (source, name, argv) values ('default', 'fetch', jsonb('["true"]'));
insert into items (source, id, active, title, author, body, link, time, ttl, ttd, tts, action)
values ('default', 'welcome', 1, 'Welcome to intake!', 'intake',
'<p>Click the "X" button on this item to deactivate it and hide it from the feed.</p>',
'', 1, 0, 0, 0, jsonb('null'))