2025_06_11_140249_create_ticket_projects_table.php
1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateTicketProjectsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('gl_ticket_projects', function (Blueprint $table) {
$table->id();
$table->integer('post_id')->index();
$table->integer('version')->default(5)->comment('版本号: 5, 6');
$table->integer('table_id')->index()->comment('来源表ID');
$table->string('uuid', 32)->unique()->comment('项目链接唯一标识符');
$table->string('company_name')->nullable()->index()->comment('公司名称');
$table->string('title')->nullable()->index()->comment('项目标题');
$table->bigInteger('engineer_id')->default(0)->index()->comment('V5项目的第一负责人 gl_manage 表ID');
$table->string('website')->nullable()->index()->comment('站点域名');
$table->timestamps();
});
\Illuminate\Support\Facades\DB::statement("ALTER TABLE `gl_ticket_projects` comment '售后工单项目整合表V5,V6'");
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('gl_ticket_projects');
}
}