Commit 665a1d59 authored by alissonalbuquerque's avatar alissonalbuquerque
Browse files

desativar classes de migration

parent 7fca24fc
...@@ -13,9 +13,9 @@ class CreateCursoInUsersTable extends Migration ...@@ -13,9 +13,9 @@ class CreateCursoInUsersTable extends Migration
*/ */
public function up() public function up()
{ {
Schema::table('users', function (Blueprint $table) { // Schema::table('users', function (Blueprint $table) {
$table->foreignId('curso_id')->nullable(); // $table->foreignId('curso_id')->nullable();
}); // });
} }
/** /**
...@@ -25,8 +25,8 @@ class CreateCursoInUsersTable extends Migration ...@@ -25,8 +25,8 @@ class CreateCursoInUsersTable extends Migration
*/ */
public function down() public function down()
{ {
if(Schema::hasColumn('users', 'curso_id')) { // if(Schema::hasColumn('users', 'curso_id')) {
Schema::dropColumns('users', ['curso_id']); // Schema::dropColumns('users', ['curso_id']);
} // }
} }
} }
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateUnidadeInUsersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('users', function (Blueprint $table) {
// $table->foreignId('unidade_id')->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
// if(Schema::hasColumn('users', 'unidade_id')) {
// Schema::dropColumns('users', ['unidade_id']);
// }
}
}
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