Mache Medien, Übungen und Kurse in der Verwaltung bearbeitbar.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
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');
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in new issue
Block a user