add media stuff

This commit is contained in:
Benjamin Takats
2022-12-03 19:44:41 +01:00
parent dd206810d9
commit 43d33db0cb
16 changed files with 219 additions and 24 deletions

View File

@@ -13,6 +13,7 @@ return new class extends Migration {
{
Schema::table('lecturers', function (Blueprint $table) {
$table->longText('description')
->fulltext()
->nullable();
});
}

View File

@@ -0,0 +1,31 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration {
/**
* Run the migrations.
* @return void
*/
public function up()
{
Schema::table('courses', function (Blueprint $table) {
$table->longText('description')
->fulltext()
->nullable();
});
}
/**
* Reverse the migrations.
* @return void
*/
public function down()
{
Schema::table('courses', function (Blueprint $table) {
//
});
}
};

View File

@@ -0,0 +1,29 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration {
/**
* Run the migrations.
* @return void
*/
public function up()
{
Schema::table('events', function (Blueprint $table) {
$table->string('link');
});
}
/**
* Reverse the migrations.
* @return void
*/
public function down()
{
Schema::table('events', function (Blueprint $table) {
//
});
}
};

View File

@@ -107,6 +107,7 @@ class DatabaseSeeder extends Seeder
Event::create([
'course_id' => 1,
'venue_id' => 1,
'link' => 'https://einundzwanzig.space',
'from' => now()->startOfDay(),
'to' => now()
->startOfDay()