<?phpwhich looks fine to me?
namespace Fuel\Migrations;
class Create_users
{
public function up()
{
\DBUtil::create_table('users', array(
'id' => array('constraint' => 11, 'type' => 'int', 'auto_increment' => true),
'name' => array('constraint' => 255, 'type' => 'varchar'),
'created_at' => array('constraint' => 11, 'type' => 'int'),
'updated_at' => array('constraint' => 11, 'type' => 'int'),
), array('id'));
}
public function down()
{
\DBUtil::drop_table('users');
}
}
[hverton@catwoman] $ php oil r migrateSo the code works fine.
Performed migrations for app:default:
001_create_somerandomthings
It looks like you're new here. If you want to get involved, click one of these buttons!