Skip to content

Commit 0f8315e

Browse files
abitofhelpclaude
andcommitted
fix: move migrations into adaptive_pipeline crate for publishing
- Move migrations/ from workspace root to adaptive_pipeline/migrations/ - Update sqlx::migrate! path from "../migrations" to "./migrations" - Fixes cargo publish error: migrations must be in crate for packaging 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent ebc2c0a commit 0f8315e

2 files changed

Lines changed: 1 addition & 1 deletion

File tree

File renamed without changes.

adaptive_pipeline/src/infrastructure/repositories/schema.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ pub async fn ensure_schema(pool: &SqlitePool) -> Result<(), sqlx::Error> {
1919
debug!("Ensuring database schema is up to date");
2020

2121
// Run migrations - sqlx will automatically track what's been applied
22-
sqlx::migrate!("../migrations").run(pool).await?;
22+
sqlx::migrate!("./migrations").run(pool).await?;
2323

2424
info!("Database schema is up to date");
2525
Ok(())

0 commit comments

Comments
 (0)