Commit 5673688a authored by Guilherme Silva's avatar Guilherme Silva
Browse files

Mudança de atributo para novo arquivo de migração

parent 19529938
...@@ -19,7 +19,6 @@ class CreateSubstituicaosTable extends Migration ...@@ -19,7 +19,6 @@ class CreateSubstituicaosTable extends Migration
$table->enum('tipo', ['Completa', 'TrocarPlano', 'ManterPlano']); $table->enum('tipo', ['Completa', 'TrocarPlano', 'ManterPlano']);
$table->text('justificativa')->nullable(); $table->text('justificativa')->nullable();
$table->string('causa')->nullable(); $table->string('causa')->nullable();
$table->text('observacao')->nullable();
$table->unsignedBigInteger('trabalho_id'); $table->unsignedBigInteger('trabalho_id');
$table->unsignedBigInteger('participanteSubstituido_id'); $table->unsignedBigInteger('participanteSubstituido_id');
......
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AlterTableSubstituicaos extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('substituicaos', function (Blueprint $table) {
$table->text('observacao')->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('substituicaos', function (Blueprint $table) {
$table->dropColumn('observacao');
});
}
}
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