hasTable('credential'); if (!$exists) { $table = $this->table('credential'); $table->addColumn('email','string',["limit" => 255]) ->addColumn('password','string',["limit" => 255]) ->addColumn('type','string',["limit" => 2]) ->addColumn('verify','integer') ->addColumn('role_id','integer') ->addColumn('user_id','integer') ->addColumn('status','integer') ->addColumn('created_at','date') ->addColumn('updated_at','datetime') ->create(); } } public function down() { $this->table('credential')->drop()->save(); } }