hasTable('member_profile'); if (!$exists) { $table = $this->table('member_profile'); $table->addColumn('user_id','integer') ->addColumn('username','string',["limit" => 50]) ->addColumn('school_id','integer') ->addColumn('created_at','date') ->addColumn('updated_at','datetime') ->create(); } } public function down() { $this->table('member_profile')->drop()->save(); } }