"app/git@sites.upe.br:walter.felipe/submeta.git" did not exist on "f9faab3f371e020326b486f34652bb76165f8810"
Commit 6ec36cc3 authored by Guilherme Silva's avatar Guilherme Silva
Browse files

Adicionado tipo ao avaliador

parent 45ed170d
...@@ -13,6 +13,7 @@ class Avaliador extends Model ...@@ -13,6 +13,7 @@ class Avaliador extends Model
'parecer', 'parecer',
'AnexoParecer', 'AnexoParecer',
'pivot', 'pivot',
'tipo',
]; ];
public function user(){ public function user(){
return $this->belongsTo('App\User'); return $this->belongsTo('App\User');
......
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AlterTableAvaliadors extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('avaliadors', function (Blueprint $table) {
$table->string('tipo')->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('avaliadors', function (Blueprint $table) {
$table->dropColumn('tipo');
});
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment