Skip to content

Latest commit

 

History

History
84 lines (55 loc) · 2.69 KB

UPGRADE.md

File metadata and controls

84 lines (55 loc) · 2.69 KB

Upgrade Guide

Instructions

  1. Determine the current version (composer info ...)
  2. Choose the wanted version
  3. Follow the instructions
  4. ??????
  5. PROFIT

For example, if the current version is 2.x and you want to migrate to 5.x, you need to perform all steps in the following order:

  • "Upgrade from v2"
  • "Upgrade from v3"
  • "Upgrade from v4"

Please also see changelog to find all changes.

Legend

🤝 Backward-compatible change. Please note that despite you can ignore it now, but it will be mandatory in the future.

Upgrade from v6

  • PHP 8.1 is not supported anymore. Migrate to the newer version.

  • Direct usages of Container::getInstances() were replaced by explicit constructor parameters. You may need to update your code accordingly (#151).

  • Use new commands

    • lara-asp-migrator:sql-migration instead of lara-asp-migrator:raw-migration
    • lara-asp-migrator:sql-seeder instead of lara-asp-migrator:raw-migration
  • Migrate to the new SqlMigration class 🤝

    <?php declare(strict_types = 1);
    
    use LastDragon_ru\LaraASP\Migrator\Migrations\SqlMigration;
    
    return app()->call(
        new class extends SqlMigration {
            // Please see the associated SQL files
        },
    );
  • Migrate to the new Seeder and SqlSeeder classes 🤝

Upgrade from v5

  • Laravel v9 is not supported anymore. Migrate to the newer version.