Working on adding business hours to the calendar
parent
cfabdb950d
commit
7c884582a2
@ -0,0 +1,16 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace v330\CalendarImprovements;
|
||||||
|
|
||||||
|
class AddBusinessHoursTable extends \AbstractUpdatableMigration {
|
||||||
|
|
||||||
|
function innerUp($hesk_settings) {
|
||||||
|
$this->executeQuery("CREATE TABLE `" . hesk_dbEscape($hesk_settings['db_pfix']) . "mfh_calendar_business_hours`
|
||||||
|
(`day_of_week` INT NOT NULL, `all_day` INT NOT NULL,
|
||||||
|
`start_time` VARCHAR(5) NOT NULL, `end_time` VARCHAR(5) NOT NULL)");
|
||||||
|
}
|
||||||
|
|
||||||
|
function innerDown($hesk_settings) {
|
||||||
|
$this->executeQuery("DROP TABLE `" . hesk_dbEscape($hesk_settings['db_pfix']) . "mfh_calendar_business_hours`");
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue