changed my_lat and my_lng data types due to adif spec
这个提交包含在:
父节点
ac58d90cf2
当前提交
3e30310d01
共有 1 个文件被更改,包括 29 次插入 和 0 次删除
|
|
@ -0,0 +1,29 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||||
|
|
||||||
|
class Migration_mylatlng_wrongtype extends CI_Migration {
|
||||||
|
|
||||||
|
public function up()
|
||||||
|
{
|
||||||
|
$fields = array(
|
||||||
|
'COL_MY_LAT' => array(
|
||||||
|
'name' => 'COL_MY_LAT',
|
||||||
|
'type' => 'VARCHAR',
|
||||||
|
'constraint' => '15',
|
||||||
|
),
|
||||||
|
|
||||||
|
'COL_MY_LON' => array(
|
||||||
|
'name' => 'COL_MY_LON',
|
||||||
|
'type' => 'VARCHAR',
|
||||||
|
'constraint' => '15',
|
||||||
|
),
|
||||||
|
);
|
||||||
|
$this->dbforge->modify_column($this->config->item('table_name'), $fields);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function down()
|
||||||
|
{
|
||||||
|
echo "Not possible, sorry.";
|
||||||
|
}
|
||||||
|
}
|
||||||
正在加载…
在新工单中引用