diff options
author | Hui Lan <lanhui@zjnu.edu.cn> | 2021-02-11 15:03:46 +0800 |
---|---|---|
committer | Hui Lan <lanhui@zjnu.edu.cn> | 2021-02-11 15:03:46 +0800 |
commit | ddf33e64c42236732d89614926ef28a864eea436 (patch) | |
tree | 8c7adc37fce5f72434e0d503d0017cd53e6e96d5 /app/static/wordfreqapp_schema.sql | |
parent | 47aaac4360b146796c48e4878a4110348d6c1ecb (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.sql | 12 |
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 ); |