Skip to content

Migrations.classNotFound #1420

Description

@dasua

name: Bug report
about: Help us improve the framework by reporting bugs!


Direction
We use github issues to track bugs, not for support.
If you have a support question, or a feature request, raise these as threads on our
forum.

Describe the bug
A clear and concise description of what the bug is.

CodeIgniter 4 version
4.0.0.alpha.2.
Installed via composer: composer create-project codeigniter4/framework:4.0.0.alpha.2

Affected module(s)
https://github.com/bcit-ci/CodeIgniter4/blob/067465790c81a09c35f655fa1b2eb6bee993294b/system/Commands/Database/CreateMigration.php#L168

Expected behavior, and steps to reproduce if appropriate
When create a new migration with command php spark migrate:create users asing $name = $sequence . '_' . $name.

This produces in the migration file a new class as:

class Migration_20181107002247_users extends Migration

When execute php spark migrate:latest get this error:

Migrations.toLatest

Migrations.classNotFound
/app/system/Database/MigrationRunner.php - 250

In MigrationRunner, line :248 fails loading $class because its value is App\Database\Migrations\Migrations_users when the classname generated was App\Database\Migrations\Migration_20181107002247_users.

Context

  • OS: [Linux Debian stretch]
  • Web server [e.g. Apache 1.2.4]
  • PHP version [e.g. 7.2.11]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions