芝麻web文件管理V1.00
编辑当前文件:/home/digitalh/public_html/database/migrations/2023_11_21_035131_create_portfolios_table.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('portfolios', function (Blueprint $table) { $table->id(); $table->unsignedBigInteger('language_id'); $table->foreign('language_id')->references('id')->on('languages')->onDelete('cascade'); $table->enum('style', ['style1'])->default('style1'); $table->string('category_name'); $table->integer('category_id'); $table->text('title'); $table->text('section_image')->nullable(); $table->text('portfolio_slug'); $table->enum('status', ['published', 'draft'])->default('published'); $table->text('url')->nullable(); $table->integer('order')->default(0); $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('portfolios'); } };
Page is not found
Oops! Page not found.
Sorry, an error has occured, Requested page not found!
Back To Homepage