mirror of
https://github.com/hpware/news-analyze.git
synced 2025-06-23 13:04:23 +00:00
Add news article archiving & Add user favs.
This commit is contained in:
parent
2527056e85
commit
25760cf0d1
4 changed files with 48 additions and 7 deletions
|
@ -51,6 +51,15 @@ const createSources = await sql`
|
|||
)
|
||||
`;
|
||||
|
||||
const createArticlesArchive = await sql`
|
||||
create table if not exists news_articles (
|
||||
uuid text primary key,
|
||||
article_id text primary key,
|
||||
jsondata json not null,
|
||||
archive_timestamp timestamp default CURRENT_TIMESTAMP,
|
||||
)
|
||||
`;
|
||||
|
||||
console.log("Creation Complete");
|
||||
console.log(
|
||||
"If the script still does not quit after 2 seconds after the 'Creation Complete' message, please stop it by using Ctrl + C or on mac Control + C",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue