I run the migrations on code igniter succefully (so it seems) but there's
no trace of it in the db
I'm running CI on vagrant and when I run the code in my controller
<?php
class Migration extends Admin_Controller
{
public function __construct ()
{
parent::__construct();
}
public function index ()
{
$this->load->library('migration');
if (! $this->migration->current()) {
show_error($this->migration->error_string());
}
else {
echo 'Migration worked!';
}
}
}
It echoes in my browser Migration worked, but it doesn't show anything on
my database. Run Mysql Command lines because I can't go to phpMyAdmin in
CI for some reason.
I'm noob to LAMP (more familiar with rails stack)
No comments:
Post a Comment