| Crates.io | prax-migrate |
| lib.rs | prax-migrate |
| version | 0.5.0 |
| created_at | 2025-12-21 16:28:18.608704+00 |
| updated_at | 2026-01-07 18:33:34.146723+00 |
| description | Migration engine for the Prax ORM - schema diffing, SQL generation, and history tracking |
| homepage | https://github.com/pegasusheavy/prax-orm |
| repository | https://github.com/pegasusheavy/prax-orm |
| max_upload_size | |
| id | 1998249 |
| size | 316,211 |
Database migration engine for Prax ORM.
prax-migrate provides automatic schema diffing and migration generation for Prax schemas.
use prax_migrate::{MigrationEngine, MigrationConfig};
let engine = MigrationEngine::new(config).await?;
// Generate migrations from schema changes
engine.generate("add_user_table").await?;
// Apply pending migrations
engine.migrate().await?;
// Rollback last migration
engine.rollback(1).await?;
# Generate a new migration
prax migrate generate add_posts_table
# Apply all pending migrations
prax migrate up
# Rollback the last migration
prax migrate down
# Show migration status
prax migrate status
Licensed under either of Apache License, Version 2.0 or MIT license at your option.