![]() |
How to use proper C_I 4 migrate (spark) - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: General (https://forum.codeigniter.com/forumdisplay.php?fid=1) +--- Forum: Lounge (https://forum.codeigniter.com/forumdisplay.php?fid=3) +--- Thread: How to use proper C_I 4 migrate (spark) (/showthread.php?tid=81577) |
How to use proper C_I 4 migrate (spark) - luckmoshy - 03-19-2022 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/dbmgmt/migration.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 RE: How to use proper C_I 4 migrate (spark) - InsiteFX - 03-19-2022 Show us the migration file. RE: How to use proper C_I 4 migrate (spark) - luckmoshy - 03-20-2022 (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' RE: How to use proper C_I 4 migrate (spark) - datamweb - 03-20-2022 Hi, try the following way. Code: php spark migrate -n Admin RE: How to use proper C_I 4 migrate (spark) - kenjis - 03-20-2022 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 |