From ea46b95cc0344cdcd8eff1c334db091c20d686e3 Mon Sep 17 00:00:00 2001 From: Kim Huebel Date: Mon, 31 Aug 2020 17:11:43 +0200 Subject: [PATCH] enlarged submodes-filed, updated cropped submodes to original content --- application/config/migration.php | 2 +- .../migrations/042_modify_modes_table.php | 26 +++++++++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 application/migrations/042_modify_modes_table.php diff --git a/application/config/migration.php b/application/config/migration.php index 37cfddba..bb6a07c3 100644 --- a/application/config/migration.php +++ b/application/config/migration.php @@ -21,7 +21,7 @@ $config['migration_enabled'] = TRUE; | be upgraded / downgraded to. | */ -$config['migration_version'] = 41; +$config['migration_version'] = 42; /* |-------------------------------------------------------------------------- diff --git a/application/migrations/042_modify_modes_table.php b/application/migrations/042_modify_modes_table.php new file mode 100644 index 00000000..a3d4fcb8 --- /dev/null +++ b/application/migrations/042_modify_modes_table.php @@ -0,0 +1,26 @@ + array( + 'name' => 'submode', + 'type' => 'VARCHAR', + 'constraint' => '25', + ) + ); + $this->dbforge->modify_column('adif_modes', $fields); + + $this->db->query("UPDATE `adif_modes` set submode = 'OLIVIA 16/500' where submode = 'OLIVIA 16/50';"); + $this->db->query("UPDATE `adif_modes` set submode = 'OLIVIA 16/1000' where submode = 'OLIVIA 16/10';"); + $this->db->query("UPDATE `adif_modes` set submode = 'OLIVIA 32/1000' where submode = 'OLIVIA 32/10';"); + + } + + public function down(){ + echo "Not possible, sorry."; + } +}