Skip to main content
Version: 2.x

Upgrade Guide

Navigate between major versions of auditor-doctrine-provider

This section contains upgrade guides for major versions.

📚 Upgrade Guides​

📋 Version Support​

VersionStatusSupport Until
2.xActive development 🚀Current
1.xBug and security fixesUntil next major

✅ General Upgrade Process​

IMPORTANT

Always follow these steps when upgrading:

  1. 📖 Read the upgrade guide for your target version
  2. 📦 Update dependencies in composer.json
  3. 🔄 Run Composer update
  4. 🗄️ Run schema migration (if upgrading from 1.x)
  5. ✅ Run tests

CAUTION

Upgrading from 1.x migrates every audit table and drops the legacy columns: back up the audit tables and follow the step-by-step procedure, in its order.

# Update dependencies
composer require damienharper/auditor-doctrine-provider:^2.0

# Migrate existing audit tables (after a backup, with audit writes stopped)
bin/console audit:schema:migrate --force --convert-all

# Add the indexes of the v2 schema
bin/console audit:schema:update --force

# Run tests
bin/phpunit