From fd072f9ca641e18e3fccc80c901a0022591c5751 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Tue, 20 Oct 2026 12:25:53 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=97=83=EF=B8=8F=20db:=20renumber=20migrat?= =?UTF-8?q?ions=20into=20a=20contiguous=20history?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...0050_run_warnings.sql => 0047_run_warnings.sql} | 0 ...automerge.sql => 0048_pull_draft_automerge.sql} | 0 ...equired_checks.sql => 0049_required_checks.sql} | 0 .../{0061_imports.sql => 0050_imports.sql} | 0 ...0062_data_exports.sql => 0051_data_exports.sql} | 0 crates/forge-core/src/store/exports.rs | 2 +- crates/forge-core/src/store/imports.rs | 2 +- crates/forge-core/src/store/migrate.rs | 14 +++++++------- 8 files changed, 9 insertions(+), 9 deletions(-) rename crates/forge-core/migrations/{0050_run_warnings.sql => 0047_run_warnings.sql} (100%) rename crates/forge-core/migrations/{0052_pull_draft_automerge.sql => 0048_pull_draft_automerge.sql} (100%) rename crates/forge-core/migrations/{0053_required_checks.sql => 0049_required_checks.sql} (100%) rename crates/forge-core/migrations/{0061_imports.sql => 0050_imports.sql} (100%) rename crates/forge-core/migrations/{0062_data_exports.sql => 0051_data_exports.sql} (100%) diff --git a/crates/forge-core/migrations/0050_run_warnings.sql b/crates/forge-core/migrations/0047_run_warnings.sql similarity index 100% rename from crates/forge-core/migrations/0050_run_warnings.sql rename to crates/forge-core/migrations/0047_run_warnings.sql diff --git a/crates/forge-core/migrations/0052_pull_draft_automerge.sql b/crates/forge-core/migrations/0048_pull_draft_automerge.sql similarity index 100% rename from crates/forge-core/migrations/0052_pull_draft_automerge.sql rename to crates/forge-core/migrations/0048_pull_draft_automerge.sql diff --git a/crates/forge-core/migrations/0053_required_checks.sql b/crates/forge-core/migrations/0049_required_checks.sql similarity index 100% rename from crates/forge-core/migrations/0053_required_checks.sql rename to crates/forge-core/migrations/0049_required_checks.sql diff --git a/crates/forge-core/migrations/0061_imports.sql b/crates/forge-core/migrations/0050_imports.sql similarity index 100% rename from crates/forge-core/migrations/0061_imports.sql rename to crates/forge-core/migrations/0050_imports.sql diff --git a/crates/forge-core/migrations/0062_data_exports.sql b/crates/forge-core/migrations/0051_data_exports.sql similarity index 100% rename from crates/forge-core/migrations/0062_data_exports.sql rename to crates/forge-core/migrations/0051_data_exports.sql diff --git a/crates/forge-core/src/store/exports.rs b/crates/forge-core/src/store/exports.rs index df10d79..e7e98b6 100644 --- a/crates/forge-core/src/store/exports.rs +++ b/crates/forge-core/src/store/exports.rs @@ -1,4 +1,4 @@ -//! Storage for per-user data exports (migration 0062). The archive bytes live on disk; this layer +//! Storage for per-user data exports (migration 0051). The archive bytes live on disk; this layer //! tracks the state and the expiry. use std::time::Duration; diff --git a/crates/forge-core/src/store/imports.rs b/crates/forge-core/src/store/imports.rs index 98eb635..efad12b 100644 --- a/crates/forge-core/src/store/imports.rs +++ b/crates/forge-core/src/store/imports.rs @@ -1,5 +1,5 @@ //! Storage for repository import jobs, their progress log and the remote-to-local id map -//! (migration 0061). No remote credential is ever stored here. +//! (migration 0050). No remote credential is ever stored here. use turso::{Row, Value}; diff --git a/crates/forge-core/src/store/migrate.rs b/crates/forge-core/src/store/migrate.rs index 6d5453e..8ce50bc 100644 --- a/crates/forge-core/src/store/migrate.rs +++ b/crates/forge-core/src/store/migrate.rs @@ -71,17 +71,17 @@ pub const MIGRATIONS: &[(u32, &str)] = &[ 46, include_str!("../../migrations/0046_server_settings.sql"), ), - (50, include_str!("../../migrations/0050_run_warnings.sql")), + (47, include_str!("../../migrations/0047_run_warnings.sql")), ( - 52, - include_str!("../../migrations/0052_pull_draft_automerge.sql"), + 48, + include_str!("../../migrations/0048_pull_draft_automerge.sql"), ), ( - 53, - include_str!("../../migrations/0053_required_checks.sql"), + 49, + include_str!("../../migrations/0049_required_checks.sql"), ), - (61, include_str!("../../migrations/0061_imports.sql")), - (62, include_str!("../../migrations/0062_data_exports.sql")), + (50, include_str!("../../migrations/0050_imports.sql")), + (51, include_str!("../../migrations/0051_data_exports.sql")), ]; /// The highest migration version this binary knows about.