From 0c20bd0519a5bef1a0b23058eeb75a5f3ca328c7 Mon Sep 17 00:00:00 2001 From: jsasg <735273025@qq.com> Date: Wed, 8 Jul 2026 17:52:09 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E6=9B=B4=E6=96=B0=E4=BA=A7?= =?UTF-8?q?=E5=93=81=E5=85=BC=E5=AE=B9=E6=80=A7=E5=85=B3=E8=81=94=E8=A1=A8?= =?UTF-8?q?=E8=BF=81=E7=A7=BB=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../20260707034159_create_product_compat_rel.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/database/migrations/20260707034159_create_product_compat_rel.php b/database/migrations/20260707034159_create_product_compat_rel.php index 90751a8c..37c9b264 100644 --- a/database/migrations/20260707034159_create_product_compat_rel.php +++ b/database/migrations/20260707034159_create_product_compat_rel.php @@ -34,15 +34,12 @@ class CreateProductCompatRel extends Migrator 'comment' => '产品兼容性关联表' ]); - $table->addColumn('language_id', 'integer', ['signed' => false, 'null' => false, 'comment' => '语言ID']) - ->addColumn('product_id', 'integer', ['null' => false, 'comment' => '产品id']) - ->addColumn('compat_id', 'json', ['null' => false, 'comment' => '关联的兼容性数据id']) + $table->addColumn('product_id', 'integer', ['null' => false, 'comment' => '产品id']) + ->addColumn('compat_id', 'int', ['null' => false, 'comment' => '关联的兼容性数据id']) ->addColumn('series_name', 'string', ['limit' => 128, 'null' => true, 'comment' => '产品系列名']) ->addColumn('show_series_name', 'boolean', ['null' => false, 'default' => 0, 'comment' => '是否显示系列名:0=否,1=是']) ->addColumn('remark', 'string', ['limit' => 512, 'null' => true, 'comment' => '兼容性说明']) ->addColumn('created_at', 'timestamp', ['null' => false, 'default' => 'CURRENT_TIMESTAMP', 'comment' => '创建时间']) - ->addColumn('updated_at', 'timestamp', ['null' => false, 'default' => 'CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP', 'comment' => '更新时间']) - ->addIndex(['language_id'], ['name' => 'idx_language_id']) ->create(); } }