5 changed files with 63 additions and 24 deletions
@ -0,0 +1,28 @@ |
|||
<?php |
|||
|
|||
use Illuminate\Database\Migrations\Migration; |
|||
use Illuminate\Database\Schema\Blueprint; |
|||
use Illuminate\Support\Facades\Schema; |
|||
|
|||
return new class extends Migration |
|||
{ |
|||
/** |
|||
* Run the migrations. |
|||
*/ |
|||
public function up(): void |
|||
{ |
|||
Schema::table('docentes', function (Blueprint $table) { |
|||
$table->boolean('status')->default(true)->after('materia'); |
|||
}); |
|||
} |
|||
|
|||
/** |
|||
* Reverse the migrations. |
|||
*/ |
|||
public function down(): void |
|||
{ |
|||
Schema::table('docentes', function (Blueprint $table) { |
|||
$table->dropColumn('status'); |
|||
}); |
|||
} |
|||
}; |
Loading…
Reference in new issue