summaryrefslogtreecommitdiff
path: root/app/static/wordfreqapp_schema.sql
diff options
context:
space:
mode:
authorHui Lan <lanhui@zjnu.edu.cn>2021-02-11 15:03:46 +0800
committerHui Lan <lanhui@zjnu.edu.cn>2021-02-11 15:03:46 +0800
commitddf33e64c42236732d89614926ef28a864eea436 (patch)
tree8c7adc37fce5f72434e0d503d0017cd53e6e96d5 /app/static/wordfreqapp_schema.sql
parent47aaac4360b146796c48e4878a4110348d6c1ecb (diff)
add a column article_id to database table article.
Diffstat (limited to 'app/static/wordfreqapp_schema.sql')
-rw-r--r--app/static/wordfreqapp_schema.sql12
1 files changed, 7 insertions, 5 deletions
diff --git a/app/static/wordfreqapp_schema.sql b/app/static/wordfreqapp_schema.sql
index 62ed51b..46236fc 100644
--- a/app/static/wordfreqapp_schema.sql
+++ b/app/static/wordfreqapp_schema.sql
@@ -1,8 +1,10 @@
CREATE TABLE user(name TEXT PRIMARY KEY, password TEXT, start_date TEXT, expiry_date TEXT);
+CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE IF NOT EXISTS "article" (
- `text` TEXT,
- `source` TEXT,
- `date` TEXT,
- `level` TEXT,
- `question` TEXT
+ "article_id" INTEGER PRIMARY KEY AUTOINCREMENT,
+ "text" TEXT,
+ "source" TEXT,
+ "date" TEXT,
+ "level" TEXT,
+ "question" TEXT
);