From dde42136eebee4e19916b5a6b0df221ccb136c30 Mon Sep 17 00:00:00 2001 From: phl0 Date: Wed, 19 Apr 2023 22:10:44 +0200 Subject: [PATCH] Set default value in case DXCC id is missing --- application/migrations/118_make_lotw_use_dxcc_id.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/migrations/118_make_lotw_use_dxcc_id.php b/application/migrations/118_make_lotw_use_dxcc_id.php index 69fd7d2c6..53d16e159 100644 --- a/application/migrations/118_make_lotw_use_dxcc_id.php +++ b/application/migrations/118_make_lotw_use_dxcc_id.php @@ -6,7 +6,7 @@ class Migration_make_lotw_use_dxcc_id extends CI_Migration public function up() { $fields = array( - 'cert_dxcc_id SMALLINT(6) NOT NULL AFTER `cert_dxcc`', + 'cert_dxcc_id SMALLINT(6) DEFAULT 0 NOT NULL AFTER `cert_dxcc`', ); if (!$this->db->field_exists('cert_dxcc_id', 'lotw_certs')) {