Renumber migrations into a contiguous history
Browse files at this commitfd072f9ca641e18e3fccc80c901a0022591c5751Parent: b6fa921- db
- renumber migrations into a contiguous history
8 changed files +9 -9
- crates/forge-core/migrations/0050_run_warnings.sql → crates/forge-core/migrations/0047_run_warnings.sql +0 -0
- crates/forge-core/migrations/0052_pull_draft_automerge.sql → crates/forge-core/migrations/0048_pull_draft_automerge.sql +0 -0
- crates/forge-core/migrations/0053_required_checks.sql → crates/forge-core/migrations/0049_required_checks.sql +0 -0
- crates/forge-core/migrations/0061_imports.sql → crates/forge-core/migrations/0050_imports.sql +0 -0
- crates/forge-core/migrations/0062_data_exports.sql → crates/forge-core/migrations/0051_data_exports.sql +0 -0
- crates/forge-core/src/store/exports.rs +1 -1
- crates/forge-core/src/store/imports.rs +1 -1
- crates/forge-core/src/store/migrate.rs +7 -7
crates/forge-core/migrations/0050_run_warnings.sql → crates/forge-core/migrations/0047_run_warnings.sqlrenamed+0 -0
crates/forge-core/migrations/0052_pull_draft_automerge.sql → crates/forge-core/migrations/0048_pull_draft_automerge.sqlrenamed+0 -0
crates/forge-core/migrations/0053_required_checks.sql → crates/forge-core/migrations/0049_required_checks.sqlrenamed+0 -0
crates/forge-core/migrations/0061_imports.sql → crates/forge-core/migrations/0050_imports.sqlrenamed+0 -0
crates/forge-core/migrations/0062_data_exports.sql → crates/forge-core/migrations/0051_data_exports.sqlrenamed+0 -0
crates/forge-core/src/store/exports.rsmodified+1 -1
| @@ -1,4 +1,4 @@ | |||
| 1 | -//! Storage for per-user data exports (migration 0062). The archive bytes live on disk; this layer | 1 | +//! Storage for per-user data exports (migration 0051). The archive bytes live on disk; this layer |
| 2 | //! tracks the state and the expiry. | 2 | //! tracks the state and the expiry. |
| 3 | 3 | ||
| 4 | use std::time::Duration; | 4 | use std::time::Duration; |
crates/forge-core/src/store/imports.rsmodified+1 -1
| @@ -1,5 +1,5 @@ | |||
| 1 | //! Storage for repository import jobs, their progress log and the remote-to-local id map | 1 | //! Storage for repository import jobs, their progress log and the remote-to-local id map |
| 2 | -//! (migration 0061). No remote credential is ever stored here. | 2 | +//! (migration 0050). No remote credential is ever stored here. |
| 3 | 3 | ||
| 4 | use turso::{Row, Value}; | 4 | use turso::{Row, Value}; |
| 5 | 5 | ||
crates/forge-core/src/store/migrate.rsmodified+7 -7
| @@ -71,17 +71,17 @@ pub const MIGRATIONS: &[(u32, &str)] = &[ | |||
| 71 | 46, | 71 | 46, |
| 72 | include_str!("../../migrations/0046_server_settings.sql"), | 72 | include_str!("../../migrations/0046_server_settings.sql"), |
| 73 | ), | 73 | ), |
| 74 | - (50, include_str!("../../migrations/0050_run_warnings.sql")), | 74 | + (47, include_str!("../../migrations/0047_run_warnings.sql")), |
| 75 | ( | 75 | ( |
| 76 | - 52, | 76 | + 48, |
| 77 | - include_str!("../../migrations/0052_pull_draft_automerge.sql"), | 77 | + include_str!("../../migrations/0048_pull_draft_automerge.sql"), |
| 78 | ), | 78 | ), |
| 79 | ( | 79 | ( |
| 80 | - 53, | 80 | + 49, |
| 81 | - include_str!("../../migrations/0053_required_checks.sql"), | 81 | + include_str!("../../migrations/0049_required_checks.sql"), |
| 82 | ), | 82 | ), |
| 83 | - (61, include_str!("../../migrations/0061_imports.sql")), | 83 | + (50, include_str!("../../migrations/0050_imports.sql")), |
| 84 | - (62, include_str!("../../migrations/0062_data_exports.sql")), | 84 | + (51, include_str!("../../migrations/0051_data_exports.sql")), |
| 85 | ]; | 85 | ]; |
| 86 | 86 | ||
| 87 | /// The highest migration version this binary knows about. | 87 | /// The highest migration version this binary knows about. |