mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-app.git
synced 2025-12-14 12:06:46 +00:00
🚀 initial commit
This commit is contained in:
44
database/migrations/2022_12_02_162000_create_trix_tables.php
Normal file
44
database/migrations/2022_12_02_162000_create_trix_tables.php
Normal file
@@ -0,0 +1,44 @@
|
||||
<?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
|
||||
{
|
||||
//
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user