reformat custom fields table. will return to this topic later
This commit is contained in:
1 parent
ace54b10e1
commit
c30be42822
8 files changed
+50
-46
No files matched your search
@@ -1,4 +1,6 @@
|
||||
create table custom_fields(
|
||||
id INTEGER PRIMARY KEY,
|
||||
name TEXT not null
|
||||
create table custom_fields
|
||||
(
|
||||
id integer primary key,
|
||||
name text not null,
|
||||
custom_fields text not null
|
||||
);
|
||||
+5
-5
@@ -1,9 +1,9 @@
|
||||
create table decks
|
||||
(
|
||||
id INTEGER
|
||||
id integer
|
||||
primary key autoincrement,
|
||||
name TEXT not null,
|
||||
forward TEXT not null,
|
||||
backward TEXT not null,
|
||||
filter TEXT not null
|
||||
name text not null,
|
||||
forward text not null,
|
||||
backward text not null,
|
||||
filter text not null
|
||||
);
|
||||
+8
-8
@@ -1,12 +1,12 @@
|
||||
create table history
|
||||
(
|
||||
id INTEGER
|
||||
id integer
|
||||
primary key autoincrement,
|
||||
deck_id INTEGER not null references decks on delete cascade,
|
||||
word_id INTEGER not null references words on delete cascade,
|
||||
timestamp INTEGER not null,
|
||||
answer INTEGER not null,
|
||||
before INTEGER not null,
|
||||
after INTEGER not null,
|
||||
fsrs INTEGER not null
|
||||
deck_id integer not null references decks on delete cascade,
|
||||
word_id integer not null references words on delete cascade,
|
||||
timestamp integer not null,
|
||||
answer integer not null,
|
||||
before integer not null,
|
||||
after integer not null,
|
||||
fsrs integer not null
|
||||
);
|
||||
+8
-8
@@ -1,16 +1,16 @@
|
||||
create table states
|
||||
(
|
||||
id INTEGER
|
||||
id integer
|
||||
primary key autoincrement,
|
||||
word_id INTEGER not null
|
||||
word_id integer not null
|
||||
references words
|
||||
on delete cascade,
|
||||
deck_id INTEGER not null
|
||||
deck_id integer not null
|
||||
references decks
|
||||
on delete cascade,
|
||||
score INTEGER default 1 not null,
|
||||
last_opened INTEGER not null,
|
||||
fsrs_opened INTEGER not null,
|
||||
fsrs_memory INTEGER not null,
|
||||
fsrs_open_day INTEGER not null
|
||||
score integer default 1 not null,
|
||||
last_opened integer not null,
|
||||
fsrs_opened integer not null,
|
||||
fsrs_memory integer not null,
|
||||
fsrs_open_day integer not null
|
||||
);
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
create table word_groups
|
||||
(
|
||||
id INTEGER
|
||||
id integer
|
||||
primary key autoincrement,
|
||||
name TEXT not null
|
||||
name text not null
|
||||
);
|
||||
+5
-5
@@ -1,11 +1,11 @@
|
||||
create table words
|
||||
(
|
||||
id INTEGER
|
||||
id integer
|
||||
primary key autoincrement,
|
||||
key TEXT not null,
|
||||
value TEXT not null,
|
||||
tags TEXT not null,
|
||||
more TEXT,
|
||||
key text not null,
|
||||
value text not null,
|
||||
tags text not null,
|
||||
more text,
|
||||
group_id integer default 1 not null
|
||||
constraint words_word_groups_id_fk
|
||||
references word_groups
|
||||
|
||||
Reference in new issue
Block a user