public function up() { \DBUtil::create_table('issues', array( 'id' => array('constraint' => 11, 'type' => 'int', 'auto_increment' => true), 'id' => array('constraint' => 11, 'type' => 'int'), 'uid' => array('constraint' => 11, 'type' => 'int'), 'issue' => array('type' => 'text'), 'solution' => array('type' => 'text'), 'thumbup' => array('constraint' => 11, 'type' => 'int'), 'thumbdown' => array('constraint' => 11, 'type' => 'int'), 'voters' => array('type' => 'text'), 'published' => array('type' => 'boolean'), 'latlng' => array('type' => 'text'), 'category' => array('constraint' => 11, 'type' => 'int'), 'resolved' => array('type' => 'boolean'), 'created_at' => array('constraint' => 11, 'type' => 'int'), 'updated_at' => array('constraint' => 11, 'type' => 'int'), ), array('id')); }
public function up() { \DBUtil::create_table('issues', array( 'id' => array('constraint' => 11, 'type' => 'int', 'auto_increment' => true), // 'id' => array('constraint' => 11, 'type' => 'int'), 'uid' => array('constraint' => 11, 'type' => 'int'), 'issue' => array('type' => 'text'), 'solution' => array('type' => 'text'), 'thumbup' => array('constraint' => 11, 'type' => 'int'), 'thumbdown' => array('constraint' => 11, 'type' => 'int'), 'voters' => array('type' => 'text'), 'published' => array('type' => 'boolean'), 'latlng' => array('type' => 'text'), 'category' => array('constraint' => 11, 'type' => 'int'), 'resolved' => array('type' => 'boolean'), 'created_at' => array('constraint' => 11, 'type' => 'int'), 'updated_at' => array('constraint' => 11, 'type' => 'int'), ), array('id')); }
liquidfire$ php oil g model id:int[11] issue:text solution:text
liquidfire$ php oil g model issue:text solution:text
It looks like you're new here. If you want to get involved, click one of these buttons!