Commit 9a66ff38 authored by GuilhermeGz's avatar GuilhermeGz
Browse files

Adicionados colunas para possibilitar utilização de documento extra nos editais

parent 3e330d48
...@@ -14,9 +14,7 @@ class AddDocTutorialToEventosTable extends Migration ...@@ -14,9 +14,7 @@ class AddDocTutorialToEventosTable extends Migration
public function up() public function up()
{ {
Schema::table('eventos', function (Blueprint $table) { Schema::table('eventos', function (Blueprint $table) {
Schema::table('eventos', function (Blueprint $table) { $table->string('docTutorial')->nullable();
$table->string('docTutorial')->nullable();
});
}); });
} }
......
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddNomeDocExtraToEventosTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('eventos', function (Blueprint $table) {
$table->string('nome_docExtra')->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('eventos', function (Blueprint $table) {
$table->dropColumn('nome_docExtra');
});
}
}
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddAnexoDocExtraToTrabalhosTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('trabalhos', function (Blueprint $table) {
$table->string('anexo_docExtra')->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('trabalhos', function (Blueprint $table) {
$table->dropColumn('anexo_docExtra');
});
}
}
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddObrigatoriedadeDocExtraToEventos extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('eventos', function (Blueprint $table) {
$table->boolean('obrigatoriedade_docExtra')->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('eventos', function (Blueprint $table) {
$table->dropColumn('obrigatoriedade_docExtra');
});
}
}
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