fix: “代理商企业规模类型表”migrations文件表命名错误
This commit is contained in:
@@ -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' => '类型值'])
|
||||
@@ -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();
|
||||
Reference in New Issue
Block a user