Leite Vorschaubilder und Filmstufen geschuetzt ab
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
d6ff881e4e
commit
c997eb500c
32 files changed
+979
-68
No files matched your search
@@ -0,0 +1,35 @@
|
||||
<?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::create('media_renditions', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->foreignId('content_element_version_id')->constrained()->restrictOnDelete();
|
||||
$table->string('role');
|
||||
$table->string('label');
|
||||
$table->string('path');
|
||||
$table->timestamps();
|
||||
$table->unique(['content_element_version_id', 'label']);
|
||||
});
|
||||
|
||||
Schema::table('media_deliveries', function (Blueprint $table) {
|
||||
$table->string('copy_id')->nullable();
|
||||
$table->string('checksum')->nullable();
|
||||
$table->string('marking')->nullable();
|
||||
});
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('media_deliveries', function (Blueprint $table) {
|
||||
$table->dropColumn(['copy_id', 'checksum', 'marking']);
|
||||
});
|
||||
Schema::dropIfExists('media_renditions');
|
||||
}
|
||||
};
|
||||
Reference in new issue
Block a user