| 1234567891011121314151617181920212223242526272829303132 |
- <?php
- use Illuminate\Database\Schema\Blueprint;
- use Illuminate\Support\Facades\Schema;
- use App\Database\Migrations\TenantMigration;
- return new class extends TenantMigration
- {
- /**
- * Run the migrations.
- *
- * @return void
- */
- public function up()
- {
- Schema::table('courses', function (Blueprint $table) {
- $table->unsignedBigInteger('discipline_id')->nullable();
- });
- }
- /**
- * Reverse the migrations.
- *
- * @return void
- */
- public function down()
- {
- Schema::table('courses', function (Blueprint $table) {
- $table->dropColumn('discipline_id');
- });
- }
- };
|