Squashed commit of the following: commit595f620d9eAuthor: phl0 <github@florian-wolters.de> Date: Wed Nov 1 13:58:05 2023 +0100 Update languages commitf670a06059Author: phl0 <github@florian-wolters.de> Date: Wed Nov 1 13:55:04 2023 +0100 Added user option for enabling QSO end time logging commit36d9a95ebbMerge:54d5bb53352931b1Author: phl0 <github@florian-wolters.de> Date: Wed Nov 1 12:18:39 2023 +0100 Merge branch 'dev' into qsoTime commit54d5bb535bAuthor: phl0 <github@florian-wolters.de> Date: Fri Oct 27 10:14:58 2023 +0200 start/end times for other languages commitc5f6bb0cabAuthor: phl0 <github@florian-wolters.de> Date: Fri Oct 27 10:14:42 2023 +0200 Hide end time if only differs in seconds as we only display minutes anyway ... commitd519d88604Author: phl0 <github@florian-wolters.de> Date: Fri Oct 27 10:14:29 2023 +0200 use start as end time if end is not set separately commitf2588ad132Author: phl0 <github@florian-wolters.de> Date: Fri Oct 27 10:13:43 2023 +0200 reset timers on form reset commit2b7ee4e48cAuthor: phl0 <github@florian-wolters.de> Date: Fri Oct 27 10:13:27 2023 +0200 Strip seconds from session time variable commite0c35aa0cfAuthor: phl0 <github@florian-wolters.de> Date: Fri Oct 27 10:13:11 2023 +0200 Adapt contest logging commit5368ef25f3Author: phl0 <github@florian-wolters.de> Date: Fri Oct 27 10:12:50 2023 +0200 Make date field a little smaller commitad2d7e756cAuthor: phl0 <github@florian-wolters.de> Date: Fri Oct 27 10:12:30 2023 +0200 Add button to reset start time commitf56e031946Author: phl0 <github@florian-wolters.de> Date: Fri Oct 27 10:11:09 2023 +0200 Copy start to end time on focus out commitb741d0428dAuthor: phl0 <github@florian-wolters.de> Date: Fri Oct 27 10:10:45 2023 +0200 Only min and sec for post QSO template commit77314edd31Author: phl0 <github@florian-wolters.de> Date: Fri Oct 27 10:08:49 2023 +0200 Basics for QSO end time logging
29 行
618 B
PHP
29 行
618 B
PHP
<?php
|
|
|
|
defined('BASEPATH') OR exit('No direct script access allowed');
|
|
|
|
/*
|
|
* This adds an option to enable grid lookup
|
|
* by location entered
|
|
*/
|
|
|
|
class Migration_qso_end_times extends CI_Migration {
|
|
|
|
public function up()
|
|
{
|
|
if (!$this->db->field_exists('user_qso_end_times', 'users')) {
|
|
$fields = array(
|
|
'user_qso_end_times integer DEFAULT 0 AFTER user_default_confirmation',
|
|
);
|
|
|
|
$this->dbforge->add_column('users', $fields);
|
|
}
|
|
}
|
|
|
|
public function down()
|
|
{
|
|
if ($this->db->field_exists('user_qso_end_times', 'users')) {
|
|
$this->dbforge->drop_column('users', 'user_qso_end_times');
|
|
}
|
|
}
|
|
}
|