From a2d03eb0d0cce9a1769d40bc0aacafb406f5408e Mon Sep 17 00:00:00 2001 From: jsasg <735273025@qq.com> Date: Fri, 13 Jun 2025 14:38:35 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E2=80=9C=E4=BB=A3=E7=90=86=E5=95=86?= =?UTF-8?q?=E4=BC=81=E4=B8=9A=E8=A7=84=E6=A8=A1=E7=B1=BB=E5=9E=8B=E8=A1=A8?= =?UTF-8?q?=E2=80=9Dmigrations=E6=96=87=E4=BB=B6=E8=A1=A8=E5=91=BD?= =?UTF-8?q?=E5=90=8D=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...p => 20241224035543_create_agent_enterprise_size_type.php} | 4 ++-- ...ypriceSizeTypeInit.php => AgentEnterpriseSizeTypeInit.php} | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) rename database/migrations/{20241224035543_create_agent_entryprice_size_type.php => 20241224035543_create_agent_enterprise_size_type.php} (92%) rename database/seeds/{AgentEntrypriceSizeTypeInit.php => AgentEnterpriseSizeTypeInit.php} (93%) diff --git a/database/migrations/20241224035543_create_agent_entryprice_size_type.php b/database/migrations/20241224035543_create_agent_enterprise_size_type.php similarity index 92% rename from database/migrations/20241224035543_create_agent_entryprice_size_type.php rename to database/migrations/20241224035543_create_agent_enterprise_size_type.php index 6c048660..8788d19a 100644 --- a/database/migrations/20241224035543_create_agent_entryprice_size_type.php +++ b/database/migrations/20241224035543_create_agent_enterprise_size_type.php @@ -2,7 +2,7 @@ use think\migration\Migrator; -class CreateAgentEntrypriceSizeType extends Migrator +class CreateAgentEnterpriseSizeType extends Migrator { /** * Change Method. @@ -27,7 +27,7 @@ class CreateAgentEntrypriceSizeType extends Migrator */ public function change() { - $table = $this->table('agent_entryprice_size_type', ['engine' => 'MyISAM', 'comment' => '代理商企业规模类型表']); + $table = $this->table('agent_enterprise_size_type', ['engine' => 'MyISAM', 'comment' => '代理商企业规模类型表']); $table->addColumn('language_id', 'integer', ['null' => false, 'default' => 0, 'comment' => '语言ID']) ->addColumn('name', 'string', ['limit' => 64, 'null' => false, 'comment' => '类型名']) ->addColumn('value', 'string', ['limit' => 64, 'null' => false, 'comment' => '类型值']) diff --git a/database/seeds/AgentEntrypriceSizeTypeInit.php b/database/seeds/AgentEnterpriseSizeTypeInit.php similarity index 93% rename from database/seeds/AgentEntrypriceSizeTypeInit.php rename to database/seeds/AgentEnterpriseSizeTypeInit.php index eb240cfd..f92c3e81 100644 --- a/database/seeds/AgentEntrypriceSizeTypeInit.php +++ b/database/seeds/AgentEnterpriseSizeTypeInit.php @@ -2,7 +2,7 @@ use think\migration\Seeder; -class AgentEntrypriceSizeTypeInit extends Seeder +class AgentEntrypriseSizeTypeInit extends Seeder { /** * Run Method. @@ -25,7 +25,7 @@ class AgentEntrypriceSizeTypeInit extends Seeder ["id" => 8, "language_id" => 2, "name" => "200 Or More", "value" => "200 Or More", "desc" => null, "sort" => 4, "created_at" => "2025-03-13 17:42:20"] ]; - $table = $this->table('agent_entryprice_size_type'); + $table = $this->table('agent_enterprise_size_type'); // empty the data $table->truncate();