HEX
Server: nginx/1.28.1
System: Linux 10-41-63-61 6.8.0-31-generic #31-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 20 00:40:06 UTC 2024 x86_64
User: www (1001)
PHP: 7.4.33
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: /www/wwwroot//www.ankua.asia/database/migrations/2023_02_09_021051_create_page_category.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.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('page_categories', function (Blueprint $table) {
            $table->comment('文章分类');
            $table->id()->comment('ID');
            $table->integer('parent_id')->comment('父级分类')->comment('parent_id');
            $table->integer('position')->comment('排序');
            $table->boolean('active')->comment('是否启用');
            $table->timestamps();
        });
        Schema::create('page_category_descriptions', function (Blueprint $table) {
            $table->comment('文章分类描述');
            $table->id()->comment('ID');
            $table->integer('page_category_id')->comment('分类 ID')->index('page_category_id');
            $table->string('locale')->comment('语言');
            $table->string('title')->comment('标题');
            $table->text('summary')->comment('分类简介');
            $table->string('meta_title')->comment('meta 标题');
            $table->string('meta_description')->comment('meta 描述');
            $table->string('meta_keywords')->comment('meta 关键字');
            $table->timestamps();
        });

        Schema::table('pages', function (Blueprint $table) {
            $table->integer('page_category_id')->comment('文章分类ID')->after('id')->index('page_category_id');
            $table->string('author')->comment('作者')->after('position');
            $table->integer('views')->comment('查看数')->after('position');
        });

        Schema::table('page_descriptions', function (Blueprint $table) {
            $table->string('summary')->comment('文章摘要')->after('title');
        });

        Schema::create('page_products', function (Blueprint $table) {
            $table->comment('文章产品关联');
            $table->id()->comment('ID');
            $table->integer('page_id')->comment('文章 ID')->index('page_id');
            $table->integer('product_id')->comment('产品 ID')->index('product_id');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {

    }
};