mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-app.git
synced 2025-12-14 12:06:46 +00:00
45 lines
1.1 KiB
PHP
45 lines
1.1 KiB
PHP
<?php
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
return new class extends Migration
|
|
{
|
|
/**
|
|
* Run the migrations.
|
|
*/
|
|
public function up(): void
|
|
{
|
|
Schema::create('nova_pending_trix_attachments', function (Blueprint $table) {
|
|
$table->increments('id');
|
|
$table->string('draft_id')
|
|
->index();
|
|
$table->string('attachment');
|
|
$table->string('disk');
|
|
$table->timestamps();
|
|
});
|
|
|
|
Schema::create('nova_trix_attachments', function (Blueprint $table) {
|
|
$table->increments('id');
|
|
$table->string('attachable_type');
|
|
$table->unsignedInteger('attachable_id');
|
|
$table->string('attachment');
|
|
$table->string('disk');
|
|
$table->string('url')
|
|
->index();
|
|
$table->timestamps();
|
|
|
|
$table->index(['attachable_type', 'attachable_id']);
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*/
|
|
public function down(): void
|
|
{
|
|
//
|
|
}
|
|
};
|