2018-01-28 22:05:09 -05:00
|
|
|
<?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`
|
2018-01-30 22:24:12 -05:00
|
|
|
(`day_of_week` INT NOT NULL, `start_time` VARCHAR(5) NOT NULL, `end_time` VARCHAR(5) NOT NULL)");
|
2018-01-28 22:05:09 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
function innerDown($hesk_settings) {
|
|
|
|
$this->executeQuery("DROP TABLE `" . hesk_dbEscape($hesk_settings['db_pfix']) . "mfh_calendar_business_hours`");
|
|
|
|
}
|
|
|
|
}
|