Add QSO start/end dates to LotW certs
这个提交包含在:
		
							父节点
							
								
									9fb1b1a96c
								
							
						
					
					
						当前提交
						b888d44289
					
				
					共有  2 个文件被更改,包括 32 次插入 和 1 次删除
				
			
		| 
						 | 
				
			
			@ -21,7 +21,7 @@ $config['migration_enabled'] = TRUE;
 | 
			
		|||
| be upgraded / downgraded to.
 | 
			
		||||
|
 | 
			
		||||
*/
 | 
			
		||||
$config['migration_version'] = 95;
 | 
			
		||||
$config['migration_version'] = 96;
 | 
			
		||||
 | 
			
		||||
/*
 | 
			
		||||
|--------------------------------------------------------------------------
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -0,0 +1,31 @@
 | 
			
		|||
<?php
 | 
			
		||||
 | 
			
		||||
defined('BASEPATH') OR exit('No direct script access allowed');
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Class Migration_add_qso_dates_to_lotw_certs
 | 
			
		||||
 *
 | 
			
		||||
 * For validity checks of LotW we need to check qso dates from 
 | 
			
		||||
 * cvertificates rather than the cert issue date itself
 | 
			
		||||
 * 
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
class Migration_add_qso_dates_to_lotw_certs extends CI_Migration {
 | 
			
		||||
 | 
			
		||||
        public function up()
 | 
			
		||||
        {
 | 
			
		||||
                if (!$this->db->field_exists('qso_start_date', 'lotw_certs')) {
 | 
			
		||||
                        $fields = array(
 | 
			
		||||
                                'qso_end_date DATETIME NULL DEFAULT NULL AFTER `date_expires`',
 | 
			
		||||
                                'qso_start_date DATETIME NULL DEFAULT NULL AFTER `date_expires`',
 | 
			
		||||
                        );
 | 
			
		||||
                        $this->dbforge->add_column('lotw_certs', $fields);
 | 
			
		||||
                }
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        public function down()
 | 
			
		||||
        {
 | 
			
		||||
                $this->dbforge->drop_column('lotw_certs', 'qso_start_date');
 | 
			
		||||
                $this->dbforge->drop_column('lotw_certs', 'qso_end_date');
 | 
			
		||||
        }
 | 
			
		||||
}
 | 
			
		||||
		正在加载…
	
		在新工单中引用