add a tool to export the HDS stories into a sqlite database
This commit is contained in:
parent
0f589ad941
commit
dff165593f
2 changed files with 142 additions and 0 deletions
19
contrib/hds/scheme.sql
Normal file
19
contrib/hds/scheme.sql
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
DROP TABLE authors;
|
||||
CREATE TABLE authors (
|
||||
name TEXT PRIMARY KEY,
|
||||
sex INTEGER,
|
||||
description
|
||||
);
|
||||
CREATE INDEX author_idx ON authors(name, sex);
|
||||
|
||||
DROP TABLE stories;
|
||||
CREATE TABLE stories (
|
||||
id INTEGER PRIMARY KEY,
|
||||
title TEXT,
|
||||
date TEXT,
|
||||
category TEXT,
|
||||
author TEXT REFERENCES authors,
|
||||
body TEXT
|
||||
);
|
||||
|
||||
CREATE INDEX stories_idx ON stories(id, category);
|
||||
Loading…
Add table
Add a link
Reference in a new issue