CodeIgniter Forums
cant set migration config value - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: cant set migration config value (/showthread.php?tid=74711)



cant set migration config value - Goddard - 10-28-2019

What would be the reason I can't call set_item on the migration version number?


RE: cant set migration config value - php_rocs - 10-28-2019

@Goddard,

What error message are you seeing when you try to call it (we need more information)? Are you just asking a question?


RE: cant set migration config value - Goddard - 10-28-2019

It doesn't give me an error. It just doesn't set the config value. I checked file permissions and they are wide open on my dev system.

Am allowed to write to the migrations.php config file with $this->config->set_item('migration_version', 23); ...?


RE: cant set migration config value - php_rocs - 10-29-2019

@Goddard,

Did you check the error logs?


RE: cant set migration config value - Goddard - 10-30-2019

I get no output error in development environment and no input in the code igniter logs, or apache logs. It just does nothing.


RE: cant set migration config value - Goddard - 11-04-2019

Can you perhaps show me an example of you writing a migration file and you test it out in code igniter 3?