tongshanglei 3 years ago
parent
commit
3d1d0804f3

+ 2 - 2
catch/hydraulic/database/migrations/20220505112140_hydraulic_add_fields.php

@@ -40,8 +40,8 @@ class HydraulicAddFields extends Migrator
         if ($this->hasTable('hydraulic')) {
             $table = $this->table('hydraulic');
 
-            $table  ->addColumn('torque', 'string', ['limit' => 10,'null' => true,'signed' => true,'comment' => '扭矩',])
-                    ->addColumn('stress', 'string', ['limit' => 10,'null' => true,'signed' => true,'comment' => '压力',])
+            $table  ->addColumn('imei', 'string', ['limit' => 32,'null' => true,'signed' => true,'comment' => 'imei号',])
+                    ->addColumn('sim_card', 'string', ['limit' => 32,'null' => true,'signed' => true,'comment' => 'sim卡号',])
                     ->update();
         }
       

+ 2 - 0
catch/hydraulic/model/Hydraulic.php

@@ -58,6 +58,8 @@ class Hydraulic extends Model
         'latitude',
         'max_pressure',
         'min_pressure',
+        'imei',
+        'sim_card'
     );
      /**
      * 获取列表