From 775539b3fa839cce0a521dd98498b080a8664659 Mon Sep 17 00:00:00 2001 From: Mikayla Maki Date: Tue, 16 Apr 2024 14:29:04 -0700 Subject: [PATCH] Fix order of migrations from #9754 (#10657) This fixes a bug caused by mis-ordered database migration in #9754 Release Notes: - N/A --- crates/workspace/src/persistence.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/crates/workspace/src/persistence.rs b/crates/workspace/src/persistence.rs index bdc29bddfd..322945c9c0 100644 --- a/crates/workspace/src/persistence.rs +++ b/crates/workspace/src/persistence.rs @@ -281,14 +281,15 @@ define_connection! { sql!( ALTER TABLE workspaces ADD COLUMN fullscreen INTEGER; //bool ), - // Add centered_layout field to workspace - sql!( - ALTER TABLE workspaces ADD COLUMN centered_layout INTEGER; //bool - ), // Add preview field to items sql!( ALTER TABLE items ADD COLUMN preview INTEGER; //bool ), + // Add centered_layout field to workspace + sql!( + ALTER TABLE workspaces ADD COLUMN centered_layout INTEGER; //bool + ), + ]; }