From ac58d90cf2f225c19e80dd9fa9bc6d402dce9d15 Mon Sep 17 00:00:00 2001 From: Peter Goodhall Date: Mon, 16 Sep 2019 21:45:59 +0100 Subject: [PATCH] Lat long stored as strong type for whats expected of ADIF. --- .../migrations/021_latlng_wrongtype.php | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 application/migrations/021_latlng_wrongtype.php diff --git a/application/migrations/021_latlng_wrongtype.php b/application/migrations/021_latlng_wrongtype.php new file mode 100644 index 00000000..90f5c0dc --- /dev/null +++ b/application/migrations/021_latlng_wrongtype.php @@ -0,0 +1,29 @@ + 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."; + } +} \ No newline at end of file