Blame | Letzte Änderung | Log anzeigen | RSS feed
<?phpuse 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(): void{Schema::create( 'media', function ( Blueprint $table ){$table->id();$table->string( "name" )->default( "" );$table->text( "description" )->default( "" );$table->foreignId( "medium_type_id" )->nullable()->references( 'id' )->on( 'content_management.medium_types' )->cascadeOnUpdate()->nullOnDelete();$table->string( "folder" )->default( "" );$table->string( 'created_by' )->default( '' );$table->string( 'updated_by' )->default( '' );$table->timestamps();} );}/*** Reverse the migrations.** @return void*/public function down(): void{Schema::dropIfExists( 'media' );}};