Mache Medien, Übungen und Kurse in der Verwaltung bearbeitbar.
Deploy Test / test (push) Successful in 13s
Deploy Test / deploy (push) Successful in 23s

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
LarsandCursor committed 2026-11-15 10:49:35 +01:00
1 parent 4f2e5a5f3b
commit 3ee9f529ca
33 files changed
+1105 -284

No files matched your search

@@ -0,0 +1,25 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up(): void
{
Schema::table('compositions', function (Blueprint $table) {
$table->string('kind')->default('uebung');
});
DB::table('compositions')->where('designation', 'like', '%Materialsatz%')->update(['kind' => 'kombination']);
}
public function down(): void
{
Schema::table('compositions', function (Blueprint $table) {
$table->dropColumn('kind');
});
}
};