Vortos
Migrations

Status and Drift

Understand migrated, pending, orphaned, clean, compatible existing, partial, and unknown migration states.

Status and Drift

Check migration state:

php vortos migrate:status

Machine-readable output:

php vortos migrate:status --json

Status Fields

FieldMeaning
migratedMigration is recorded in vortos_migrations
pendingMigration class exists but is not recorded
orphanedMigration is recorded but the class no longer exists
trackedMigrated and not checked for drift
cleanPending module migration owns objects that do not exist yet
compatible_existingPending migration owns objects that already exist and appear compatible
partialSome owned objects or expected columns/indexes are missing
unknownVortos has no ownership metadata

Compatible Existing

This usually means the SQL was already applied manually or migration metadata was lost.

Do not rerun the migration. Adopt it after verification:

php vortos migrate:adopt Version20260505114121 --verify

Partial

Partial means the schema is not safe to adopt automatically.

Examples:

  • table exists but index is missing
  • table exists but a column from the provider is missing
  • one table exists but another table owned by the same migration does not

Fix partial drift with a repair migration or manual database work, then rerun status.

On this page