table('location_log', ['engine' => 'InnoDB', 'comment' => '' ,'id' => 'id','signed' => true ,'primary_key' => ['id']]); $table->addColumn('longitude', 'decimal', ['precision' => 10,'scale' => 0,'null' => true,'signed' => true,'comment' => '经度',]) ->addColumn('latitude', 'decimal', ['precision' => 10,'scale' => 0,'null' => true,'signed' => true,'comment' => '纬度',]) ->addColumn('altitude', 'string', ['limit' => 10,'null' => true,'signed' => true,'comment' => '海拔',]) ->addColumn('device_no', 'string', ['limit' => 18,'null' => true,'signed' => true,'comment' => '设备号',]) ->addColumn('time', 'integer', ['limit' => MysqlAdapter::INT_REGULAR,'null' => true,'signed' => true,'comment' => '定位时间',]) ->create(); } }