From 775beda6ce1faca380ee727886d2bdd7ba926b66 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Tue, 1 Jun 2021 11:40:25 +1000 Subject: [PATCH] fix subdeck order not being preserved by active_decks in v3 --- rslib/src/storage/deck/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rslib/src/storage/deck/mod.rs b/rslib/src/storage/deck/mod.rs index 1f14e080f..b8380e381 100644 --- a/rslib/src/storage/deck/mod.rs +++ b/rslib/src/storage/deck/mod.rs @@ -335,7 +335,7 @@ impl SqliteStorage { pub(crate) fn update_active_decks(&self, current: &Deck) -> Result<()> { self.db.execute_batch(concat!( "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();