mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
lecturer description added
This commit is contained in:
46
database/migrations/2022_12_02_162000_create_trix_tables.php
Normal file
46
database/migrations/2022_12_02_162000_create_trix_tables.php
Normal file
@@ -0,0 +1,46 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration {
|
||||
/**
|
||||
* Run the migrations.
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
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.
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
//
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration {
|
||||
/**
|
||||
* Run the migrations.
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::table('lecturers', function (Blueprint $table) {
|
||||
$table->longText('description')
|
||||
->nullable();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::table('lecturers', function (Blueprint $table) {
|
||||
//
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user