Welcome Guest, Not a member yet? Register   Sign In
How to use proper C_I 4 migrate (spark)
#5

You misunderstand DB migrations.
You can't specify a migration file like:
Code:
$ php spark migrate  testMigration /*I want to spark single but it runs all migration why?*/

If you run migrations, all migration files (not yet executed at that time) are executed.

Code:
$ php spark help migrate

CodeIgniter v4.1.9 Command Line Tool - Server Time: 2022-03-20 06:27:01 UTC-05:00

Usage:
  migrate [options]

Description:
  Locates and runs all new migrations against the database.

Options:
  -n    Set migration namespace
  -g    Set database group
  --all  Set for all namespaces, will ignore (-n) option
Reply


Messages In This Thread
RE: How to use proper C_I 4 migrate (spark) - by kenjis - 03-20-2022, 04:30 AM



Theme © iAndrew 2016 - Forum software by © MyBB