38 lines
1.3 KiB
PHP
38 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
|
||
|
{
|
||
|
/**
|
||
|
* Run the migrations.
|
||
|
*/
|
||
|
public function up(): void
|
||
|
{
|
||
|
Schema::create('milestones', function (Blueprint $table) {
|
||
|
$table->id('milestone_id');
|
||
|
$table->string('display', 255)->nullable()->default(null);
|
||
|
$table->string('title', 250)->charset('utf8')->collation('utf8_general_ci')->nullable(false);
|
||
|
$table->text('text')->charset('utf8')->collation('utf8_general_ci')->nullable(false);
|
||
|
$table->string('image', 255)->nullable()->default(null);
|
||
|
$table->string('thumb', 255)->nullable()->default(null);
|
||
|
$table->string('cover', 255)->nullable()->default(null);
|
||
|
$table->integer('display_order')->default(1);
|
||
|
$table->integer('status')->default(1);
|
||
|
$table->integer('createdby')->nullable()->default(null);
|
||
|
$table->integer('updatedby')->nullable()->default(null);
|
||
|
$table->timestamps();
|
||
|
});
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Reverse the migrations.
|
||
|
*/
|
||
|
public function down(): void
|
||
|
{
|
||
|
Schema::dropIfExists('milestones');
|
||
|
}
|
||
|
};
|