mirror of
https://github.com/magicbug/Cloudlog
synced 2026-08-13 17:49:35 -04:00
Fixes Migration VUCC index to long
This commit is contained in:
parent
3e2ab2fb45
commit
e306b8a8a0
1 changed files with 1 additions and 8 deletions
|
|
@ -6,19 +6,12 @@ class Migration_gridsquare_index extends CI_Migration {
|
|||
|
||||
public function up()
|
||||
{
|
||||
$sql = "CREATE INDEX HRD_IDX_COL_GRIDSQUARE USING BTREE ON " . $this->config->item('table_name') . " (COL_GRIDSQUARE)";
|
||||
$this->db->query($sql);
|
||||
|
||||
$sql = "CREATE INDEX HRD_IDX_COL_VUCC_GRIDS USING BTREE ON " . $this->config->item('table_name') ." (COL_VUCC_GRIDS)";
|
||||
$sql = "ALTER TABLE ".$this->config->item('table_name')." ADD INDEX `gridsquares` (`COL_GRIDSQUARE`);";
|
||||
$this->db->query($sql);
|
||||
}
|
||||
|
||||
public function down()
|
||||
{
|
||||
$sql = "ALTER TABLE " . $this->config->item('table_name') . " DROP INDEX HRD_IDX_COL_GRIDSQUARE";
|
||||
$this->db->query($sql);
|
||||
|
||||
$sql = "ALTER TABLE " . $this->config->item('table_name') . " DROP INDEX HRD_IDX_COL_VUCC_GRIDS";
|
||||
$this->db->query($sql);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue