Skip to content

CLI Installation fails on SQLite when installing Default Extras (migration error) #1

@evolution-lover

Description

@evolution-lover

When installing EvolutionCMS via the CLI using a SQLite database, the installation crashes during the Extras installation step. The error originates from the seiger/scommerce package migrations. The same installation process completes successfully when using MySQL.

Environment:

EvolutionCMS Version: 3.5.x
PHP Version: 8.4
Database Type: SQLite

Steps to Reproduce:

Run the following CLI installation command:

Bash
evo install --branch=3.5.x --db-type=sqlite --admin-username=admin --admin-email=admin@admin.ua --admin-password=123456 --admin-directory=manager --language=en --db-name=database.sqlite
Wait for the core installation to finish.

When prompted Do you want to install additional packages (Extras) now?, select ● Yes.

Select the latest version of Default (auto) and hit Install selected.

Expected Behavior:

The CMS and all selected default Extras should install completely without errors.

Actual Behavior:

The process terminates with an error during the database migration step. The stack trace points to core/vendor/seiger/scommerce/database/migrations/2023_12_27_190234_ecommerce_structure_tables.php on line 225, specifically during a Schema::table or Schema::build call.

Error Log / Stack Trace:

#21. Illuminate\Database\Migrations\Migrator->{closure:Illuminate\Database\Migrations\Migrator::runUp():253}(), core/vendor/illuminate/console/View/Components/Task.…
#22. Illuminate\Database\Migrations\Migrator->runMigration(), core/vendor/illuminate/database/Migrations/Migrator.php on line 253
#23. Illuminate\Database\Migrations\Migrator->{closure:Illuminate\Database\Migrations\Migrator::runMigration():438}(), core/vendor/illuminate/database/Migrations/Mi…
#24. Illuminate\Database\Migrations\Migrator->runMethod(), core/vendor/illuminate/database/Migrations/Migrator.php on line 442
#25. Illuminate\Database\Migrations\Migration@anonymous/home/username/22/core/vendor/seiger/scommerce/database/migrations/2023_12_27_190234_ecommerce_structure_tabl…
#26. Illuminate\Support\Facades\Facade::__callStatic(), core/vendor/seiger/scommerce/database/migrations/2023_12_27_190234_ecommerce_structure_tables.php on line 225
#27. Illuminate\Database\Schema\Builder->table(), core/vendor/illuminate/support/Facades/Facade.php on line 363
#28. Illuminate\Database\Schema\Builder->build(), core/vendor/illuminate/database/Schema/Builder.php on line 494
#29. Illuminate\Database\Schema\Blueprint->build(), core/vendor/illuminate/database/Schema/Builder.php on line 686
#30. Illuminate\Database\Connection->statement(), core/vendor/illuminate/database/Schema/Blueprint.php on line 121
#31. Illuminate\Database\Connection->run(), core/vendor/illuminate/database/Connection.php on line 573
#32. Illuminate\Database\Connection->runQueryCallback(), core/vendor/illuminate/database/Connection.php on line 794

Some extras finished with warnings or errors. Review the results below before testing.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions