tongshanglei 2 anos atrás
pai
commit
0b389a29f3

+ 1 - 1
catch/hydraulic/database/migrations/20220523094019_maintenancemapper.php

@@ -29,7 +29,7 @@ class Maintenancemapper extends Migrator
      */
     public function change()
     {
-        $table = $this->table('maintenancemapper', ['engine' => 'InnoDB', 'collation' => 'utf8mb4_general_ci', 'comment' => '维保记录相关字典映射表' ,'id' => 'id','signed' => true ,'primary_key' => ['id']]);
+        $table = $this->table('maintenance_mapper', ['engine' => 'InnoDB', 'collation' => 'utf8mb4_general_ci', 'comment' => '维保记录相关字典映射表' ,'id' => 'id','signed' => true ,'primary_key' => ['id']]);
         $table->addColumn('device_type', 'string', ['limit' => 6,'null' => false,'default' => '','signed' => true,'comment' => '设备类型',])
 			->addColumn('value', 'string', ['limit' => 255,'null' => false,'default' => '','signed' => true,'comment' => '唯一值',])
 			->addColumn('name', 'string', ['limit' => 255,'null' => false,'default' => '','signed' => true,'comment' => '名称',])

+ 1 - 1
catch/hydraulic/model/MaintenanceMapper.php

@@ -10,7 +10,7 @@ class maintenancemapper extends Model
 {
     use DataRangScopeTrait;
     // 表名
-    public $name = 'maintenancemapper';
+    public $name = 'maintenance_mapper';
     // 数据库字段映射
     public $field = array(
         'id',