From 07e2d5c6d7df38843e8076981363cd539e638d03 Mon Sep 17 00:00:00 2001 From: Corby Krick Date: Sat, 17 Aug 2013 10:26:43 -0500 Subject: [PATCH] Actually, this needs to do an UPDATE, not an insert... --- application/migrations/004_add_eQSL_login_and_url.php | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/application/migrations/004_add_eQSL_login_and_url.php b/application/migrations/004_add_eQSL_login_and_url.php index 20d428f9..32536e8c 100644 --- a/application/migrations/004_add_eQSL_login_and_url.php +++ b/application/migrations/004_add_eQSL_login_and_url.php @@ -15,14 +15,10 @@ class Migration_add_eQSL_login_and_url extends CI_Migration { $this->dbforge->add_column('config', $config_fields); $sql = "UPDATE config SET eqsl_download_url = 'http://www.eqsl.cc/qslcard/DownloadInBox.cfm' WHERE id=1"; - $data = array( - 'eqsl_download_url' => 'http://www.eqsl.cc/qslcard/DownloadInBox.cfm', - 'eqsl_rcvd_mark' => 'Y' - ); - - $this->db->insert('config', $data); - + $this->db->query($sql); + $sql = "UPDATE config SET eqsl_rcvd_mark = 'Y' WHERE id=1"; + $this->db->query($sql); } public function down()