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

(This post was last modified: 03-19-2022, 09:57 PM by luckmoshy.)

Hi guys I am stuck with C_i 4 how to use exact migration spark
I see like there is an issue with safe in ci_4 migration if you do take no serious care you will lose your entire database record

PHP Code:
php spark migrate --all/*work*/
php spark migrate:rollback/*work*/
php spark migrate  testMigration /*I want to spark single but it runs all migration why?*/

php spark migrate:rollback  testMigration /*I want to rollback single but it rollback All migrations Why?*/
php spark migrate:refresh  testMigration /*I want to refresh single migration but it refreshes all Why?*/
/*namespace*/
php spark make:migrate  testMigration -n Admin/*work*/

php spark migrate  testMigration -n Admin/*not work*/

php spark make:migrate:refresh  testMigration -n Admin/*not work*/

php spark make:migrate:rollback  testMigration -n Admin/*not work*/ 

so which is a proper way to organize this?

i follow https://codeigniter.com/user_guide/dbmgm...ation.html but !!!

in this scenario
Code:
Web Engineer@Yekrina MINGW64 /c/xampp/htdocs/allwebdevelopers/truelionkingsafars
$ php spark migrate testMigration


CodeIgniter v4.1.9 Command Line Tool - Server Time: 2022-03-20 07:53:43 UTC+03:0
0

Running all new migrations...
Done migrations.

Web Engineer@Yekrina MINGW64 /c/xampp/htdocs/allwebdevelopers/truelionkingsafars
$

it ends like that and in the database seems nothing was inserted
Codeigniter First, Codeigniter Then You!!
yekrinaDigitals

Reply


Messages In This Thread
How to use proper C_I 4 migrate (spark) - by luckmoshy - 03-19-2022, 09:47 PM



Theme © iAndrew 2016 - Forum software by © MyBB