Welcome Guest, Not a member yet? Register   Sign In
Duplicate migration files listed in status
#5

(This post was last modified: 11-06-2023, 07:56 PM by murugappan.)

(11-06-2023, 07:33 PM)kenjis Wrote: What is "Create Class Extension"?

I think the migration works, but just shows twice all migration files when you run migrate : status.
It is because you add the App namespace twice to autoloader (CI4 autoloader and Composer autoloader).

The issue will be resolved in v4.5.0.

Hi,

Thank you so much for the explanation. I realized the same when i accessed the code. Just needed confirmation. The duplicate works for spark:migrate but fails on rollback as it does not seem to know which to rollback.

BTW, the "Create Class Extension" is a VS Code extension for PHP which provides a context menu to create a class using the psr-4 definition in composer.json. Works very well and saves a heap of time figuring out the namespace for each class we create. It actually creates a class script. and can also include strict-type checking.
Reply


Messages In This Thread
RE: Duplicate migration files listed in status - by murugappan - 11-06-2023, 07:54 PM



Theme © iAndrew 2016 - Forum software by © MyBB