fix: “代理商企业规模类型表”migrations文件表命名错误
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
use think\migration\Migrator;
|
use think\migration\Migrator;
|
||||||
|
|
||||||
class CreateAgentEntrypriceSizeType extends Migrator
|
class CreateAgentEnterpriseSizeType extends Migrator
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Change Method.
|
* Change Method.
|
||||||
@@ -27,7 +27,7 @@ class CreateAgentEntrypriceSizeType extends Migrator
|
|||||||
*/
|
*/
|
||||||
public function change()
|
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'])
|
$table->addColumn('language_id', 'integer', ['null' => false, 'default' => 0, 'comment' => '语言ID'])
|
||||||
->addColumn('name', 'string', ['limit' => 64, 'null' => false, 'comment' => '类型名'])
|
->addColumn('name', 'string', ['limit' => 64, 'null' => false, 'comment' => '类型名'])
|
||||||
->addColumn('value', 'string', ['limit' => 64, 'null' => false, 'comment' => '类型值'])
|
->addColumn('value', 'string', ['limit' => 64, 'null' => false, 'comment' => '类型值'])
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
use think\migration\Seeder;
|
use think\migration\Seeder;
|
||||||
|
|
||||||
class AgentEntrypriceSizeTypeInit extends Seeder
|
class AgentEntrypriseSizeTypeInit extends Seeder
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Run Method.
|
* 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"]
|
["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
|
// empty the data
|
||||||
$table->truncate();
|
$table->truncate();
|
||||||
Reference in New Issue
Block a user