mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Lat long stored as strong type for whats expected of ADIF.
This commit is contained in:
29
application/migrations/021_latlng_wrongtype.php
Normal file
29
application/migrations/021_latlng_wrongtype.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
class Migration_latlng_wrongtype extends CI_Migration {
|
||||
|
||||
public function up()
|
||||
{
|
||||
$fields = array(
|
||||
'COL_LAT' => array(
|
||||
'name' => 'COL_LAT',
|
||||
'type' => 'VARCHAR',
|
||||
'constraint' => '15',
|
||||
),
|
||||
|
||||
'COL_LON' => array(
|
||||
'name' => 'COL_LON',
|
||||
'type' => 'VARCHAR',
|
||||
'constraint' => '15',
|
||||
),
|
||||
);
|
||||
$this->dbforge->modify_column($this->config->item('table_name'), $fields);
|
||||
}
|
||||
|
||||
public function down()
|
||||
{
|
||||
echo "Not possible, sorry.";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user