Eindeutige iCal-Kalenderspiegelungen automatisch und widerrufbar zuordnen
Deploy FeWo mit PipelineManager / deploy (push) Successful in 2m53s

This commit is contained in:
Lars committed 2026-10-29 17:01:30 +01:00
1 parent 8b36e07dc4
commit add2367869
16 files changed
+540 -31

No files matched your search

@@ -0,0 +1,32 @@
<?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
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table('blocked_periods', function (Blueprint $table) {
$table->boolean('representation_automatic')->default(false);
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
if (DB::table('blocked_periods')->where('representation_automatic', true)->exists()) {
throw new RuntimeException('Automatische Kalenderspiegelungen zuerst auflösen; ihre Kennzeichnung darf nicht verloren gehen.');
}
Schema::table('blocked_periods', function (Blueprint $table) {
$table->dropColumn('representation_automatic');
});
}
};