Skip to content

Create And Apply Migration Atlas


# Generate Migration 
atlas migrate diff migration_name \
  --dir "<user>:<password>" \
  --to "<user>:<password>" \
  --dev-url "<user>:<password>"

  # EMPTY migration
  atlas migrate new migration_name \
  --dir "<user>:<password>"


  # Rehash migration if migration created manually
    # EMPTY migration
  atlas migrate hash \
  --dir "<user>:<password>"


  atlas migrate apply \
  --dir "<user>:<password>" \
  --url "<user>:<password>@localhost:3306/DMS"