What is accuracy to safely use CI migration ? |
Hi guys!
I use CI migration as I followed its instructions but I don't understand where am wrong as this scenario I get the following issues: PHP Code: PHP spark migrate Codeigniter First, Codeigniter Then You!!
yekrinaDigitals
There is no `--single` option.
See https://codeigniter4.github.io/userguide...line-tools If `php spark migrate:refresh --all` does not work, it is a bug. What did you get? (04-02-2022, 04:38 PM)kenjis Wrote: There is no `--single` option. @kenjis single I meant the name of migration per one like (anonymous name) PHP Code: PHP spark migrate: refresh test/*Here instead of refreshing only one migration it does for all migrations why?*/ I have 6 migration file in short, I want to do like =eg(create =migrate,update=refresh and delete=rollback) for single migration file Codeigniter First, Codeigniter Then You!!
yekrinaDigitals
@luckmoshy The Migration dose not work as you expected.
It is the point you misunderstanding. The migration is like simple or stupid Git repository. `spark migrate` is like `git commit`. How many migration files you have, when you run `spark migrate`, the migration executes all migration files, and create a batch number starting from 1. When you run `spark migrate` again, the migration executes all new migration files, and create a batch number 2. You can see the batch numbers: Code: $ php spark migrate:status You can go back to the state of arbitrary batch number with `spark migrate:rollback`. (04-03-2022, 12:20 AM)kenjis Wrote: @luckmoshy The Migration dose not work as you expected. @kenji here you helped a lot I could not understood before Codeigniter First, Codeigniter Then You!!
yekrinaDigitals
|
Welcome Guest, Not a member yet? Register Sign In |