Skip to main content

baseline_project

Function baseline_project 

Source
pub fn baseline_project(
    project: &Path,
    database_url: &str,
    expected: &DatabaseSchema,
) -> Result<BaselineStatus, MigrationError>
Expand description

Register one canonical initial migration without executing its SQL or changing business rows.

§Errors

Requires a nonempty schema without seeds, a matching canonical migration and snapshot, clean history, and matching live structure. Catalog validation and history registration run in one transaction while holding table locks and the migration runner’s advisory lock.