Migrations icon indicating copy to clipboard operation
Migrations copied to clipboard

Not clear how to create migration of specific type from CLI

Open ivangretsky opened this issue 7 years ago • 2 comments

Good day!

I am truing to create migration of a certain type from cli. Tried ./vendor/bin/migrate create --type=MODULE, ./vendor/bin/migrate create --type=ModuleMigration and some other variants - it creates only the default one. No clue to this in the command line help.

My humble attempts to debug SEEM to point that the argument is not parsed correctly.

ivangretsky avatar Oct 02 '18 17:10 ivangretsky

Try ./vendor/bin/migrate create:module

rdunk avatar Oct 04 '18 10:10 rdunk

That worked, thanks! Now I noticed those commands in the help list. But ./vendor/bin/migrate create -h still shows this option:

 -t, --type=TYPE       Alternative template type [default: "default"]

Should probably be removed or explained. Will leave this open for some time for @LostKobrakai to see.

ivangretsky avatar Oct 04 '18 10:10 ivangretsky