Small history table change
This commit is contained in:
1 parent
f9c4bf9c03
commit
bdf71fa0b7
3 files changed
+5
-4
No files matched your search
@@ -13,7 +13,7 @@ pub type HistoryDataLayer = SqliteDbLayer<HistoryNote, HistoryQuerySet>;
|
||||
pub struct HistoryQuerySet;
|
||||
impl TableAccessQuerySet<HistoryNote> for HistoryQuerySet {
|
||||
fn load() -> &'static str {
|
||||
"SELECT rowid, set_id, state_id, timestamp, answer, before, after, fsrs FROM history"
|
||||
"SELECT rowid, deck_id, word_id, timestamp, answer, before, after, fsrs FROM history"
|
||||
}
|
||||
|
||||
fn save() -> &'static str {
|
||||
@@ -21,7 +21,7 @@ impl TableAccessQuerySet<HistoryNote> for HistoryQuerySet {
|
||||
}
|
||||
|
||||
fn add() -> &'static str {
|
||||
"INSERT INTO history (set_id, state_id, timestamp, answer, before, after, fsrs) VALUES (?1, ?2, ?3, ?4, ?5, ?6, ?7)"
|
||||
"INSERT INTO history (deck_id, state_id, timestamp, answer, before, after, fsrs) VALUES (?1, ?2, ?3, ?4, ?5, ?6, ?7)"
|
||||
}
|
||||
|
||||
fn name() -> &'static str {
|
||||
|
||||
Reference in new issue
Block a user