How to use proper C_I 4 migrate (spark) |
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*/ 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 it ends like that and in the database seems nothing was inserted Codeigniter First, Codeigniter Then You!!
yekrinaDigitals
Show us the migration file.
What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
(03-19-2022, 09:47 PM)luckmoshy Wrote: Hi guys I am stuck with C_i 4 how to use exact migration spark This is an Admin Migration namespace PHP Code: <?php Code: 'Admin'=>ROOTPATH .'admin' Codeigniter First, Codeigniter Then You!!
yekrinaDigitals
Hi, try the following way.
Code: php spark migrate -n Admin
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 |
Welcome Guest, Not a member yet? Register Sign In |