.. include:: /Includes.rst.txt .. _task-1791144621: ====================================================== Task: Write migrations without deprecated schema calls ====================================================== Description =========== Doctrine DBAL 4.5 deprecates changing a ``Table`` or ``Schema`` in place, but Doctrine Migrations still compares the schema it hands to a migration. Migrations now extend ``SchemaMigration`` of the core and declare their tables with ``createTable()``, ``alterTable()`` and ``dropTable()``; the base class builds them with DBAL's editors and lets the platform write the SQL. Tables hidden from Doctrine by the schema filter (such as ``access_log``) are addressed by name, so migrating down works again. Impact ====== Every migration produces the same schema as before on MariaDB, PostgreSQL and SQLite. A package's new migration extends ``SchemaMigration``. .. index:: Database, package:adsum-core, package:adsum-attendance, package:adsum-leave, package:adsum-working-time, package:adsum-projects, package:adsum-reporting, package:adsum-migration