Files
ladill-meet/database/migrations/2026_06_30_170000_drop_meet_templates.php
T
isaaccladandCursor aed7094fed
Deploy Ladill Meet / deploy (push) Successful in 42s
Remove meeting templates and show Events programme on Meet rooms.
Templates duplicated create-form settings without edit/delete flows; drop the feature and table. Conference and webinar pages render synced programme snapshots and link back to Ladill Events.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-01 22:31:03 +00:00

39 lines
1.3 KiB
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up(): void
{
Schema::table('meet_rooms', function (Blueprint $table) {
$table->dropConstrainedForeignId('template_id');
});
Schema::dropIfExists('meet_templates');
}
public function down(): void
{
Schema::create('meet_templates', function (Blueprint $table) {
$table->id();
$table->uuid('uuid')->unique();
$table->string('owner_ref')->index();
$table->foreignId('organization_id')->constrained('meet_organizations')->cascadeOnDelete();
$table->string('name');
$table->text('description')->nullable();
$table->unsignedSmallInteger('duration_minutes')->default(60);
$table->json('settings')->nullable();
$table->boolean('is_default')->default(false);
$table->timestamps();
$table->softDeletes();
});
Schema::table('meet_rooms', function (Blueprint $table) {
$table->foreignId('template_id')->nullable()->after('source')->constrained('meet_templates')->nullOnDelete();
});
}
};