fix subdeck order not being preserved by active_decks in v3
This commit is contained in:
parent
c7e4efd17b
commit
775beda6ce
@ -335,7 +335,7 @@ impl SqliteStorage {
|
|||||||
pub(crate) fn update_active_decks(&self, current: &Deck) -> Result<()> {
|
pub(crate) fn update_active_decks(&self, current: &Deck) -> Result<()> {
|
||||||
self.db.execute_batch(concat!(
|
self.db.execute_batch(concat!(
|
||||||
"drop table if exists active_decks;",
|
"drop table if exists active_decks;",
|
||||||
"create temporary table active_decks (id integer primary key not null);"
|
"create temporary table active_decks (id integer not null unique);"
|
||||||
))?;
|
))?;
|
||||||
|
|
||||||
let top = current.name.as_native_str();
|
let top = current.name.as_native_str();
|
||||||
|
Loading…
Reference in New Issue
Block a user